You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions, despite being declared to return an output, do not actually need to return an output for the program to compile.
As an example, the following code compiles without issue, even though b should return a Number:
ReturnExample
Endpoint A;
A
{
Public Function b() returns Number {
}
}
The text was updated successfully, but these errors were encountered:
More specifically, it looks like the compiler is not requiring the use of the 'return' keyword at all in a function definition which has a return type.
Functions, despite being declared to return an output, do not actually need to return an output for the program to compile.
As an example, the following code compiles without issue, even though
b
should return aNumber
:The text was updated successfully, but these errors were encountered: