Type of a variable assignment must be a type (AJTERR10013)
Product(s) | Karo.NET Compiler |
---|
Description
When specifying the type of a variable assignment (1), a return type specification (2) or a parameter definition (3) you must reference a type. This error is thrown when your code references something else.
(1):
test1: number := 7; test: test1 := 4; // ^^^^^ You are referencing a property here instead of a type.
(2):
test: test1 := 4; example ||: test { } // ^^^^ You are referencing a property here instead of a type.
(3):
test: test1 := 4; example |argument: test|: void { } // ^^^^ You are referencing a property here instead of a type.
How can I resolve this error?
Specify a valid type.