0107: Expected function return type
Last updated
Last updated
Compiler expected a valid identifier to follow a colon (:
) in the signature but found something else.
E.g. consider this example:
The function definition ends with a colon implying a return type, but there is none defined. Or:
Compiler found an integer literal, where a name of the type was expected.
add one of the known after the colon:
if function returns nothing, delete :
after arguments list