-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
Issue description:
Missing the brackets on an if
statement gives an error about invalid subscripts:
error 028: invalid subscript (not an array or too many subscripts): "var"
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "-end of file-"
This would be a far better error:
error 001: expected token: "(", but found "-identifier-"
Minimal complete verifiable example (MCVE):
main()
{
new var;
if var
{
}
}
Workspace Information:
- Compiler version:
- Command line arguments provided (or sampctl version):
- Operating System:
3.10.10
YashasSamaga