0106: Expected a function argument 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:
value
parameter must have a type, so the compiler expected something like:
add one of the known after the colon:
if a function does not have any arguments, use empty braces ()
or omit them entirely: