0125: Unexpected return type in function
Compiler found a function's return type that wasn't expected in this position.
Function's return type is a combination of words optional
, logical
, primitive types such as Int
, or Float
, and class names.
logical
type can't be mixes with other types:
optional
modifier must precede the return type:
You can't return types that are not known to the compiler:
Possible solutions:
check your function definition and provide correct order of return types.
Previous0124: Foreign functions can't return more than one valueNext0126: Can't export a foreign function definition
Last updated