0110: Function must return N values
Compiler found that number of values in return statement does not match function signature. It can happen if return
has more or fewer values.
For example, if function has not declared any return type, it's incorrect to return values from it:
Similarly, it is incorrect to return nothing, when the function has declared a return type:
Possible solutions:
check a number of returned values following a
return
keyword. Make sure this number matches the number of return types declared in the function's signatureif the function may, under some condition, return nothing (a fallible function), its return type must be prepended with an
optional
keyword:
Previous0109: Expected variables to store function resultNext0111: Function not found in current scope
Last updated