0106: Expected a function argument type

Compiler expected a valid identifier to follow a colon (:) in the function signature but found something else.

E.g. consider this example:

function foo(value: )

value parameter must have a type, so the compiler expected something like:

function foo(value: int)

Possible solutions:

  • add one of the known types after the colon:

function foo(value: int)
function bar: float
  • if a function does not have any arguments, use empty braces () or omit them entirely:

function foo()
function bar

Last updated