Next: Symbol errors
Up: Errors
Previous: Parse errors
Contents
- semantic error: type mismatch for identifier 'foo'
string vs. long
In this case, the identifier foo
was previously inferred as a numeric type (``long''), but at the given
point is being used as a string. Similar messages appear if an array
index or function parameter slot is used with conflicting types.
- semantic error: unresolved type for identifier 'foo'
The identifier foo was used, for example in a print,
but without any operations that could assign it a type. Similar
messages may appear if a symbol is misspelled by a typo.
- semantic error: Expecting symbol or array index expression
Something other than an assignable lvalue was on the left hand sign
of an assignment.