-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bizzare error for invalid if
#512
Comments
This issue has been automatically marked as stale because it has not had recent activity. |
Since there are no parentheses, the compiler expects keyword if var *then *begin /* ... */ *end or if var *then { /* ... */ } I'm not sure how many people actually use this alternative syntax, but it's still valid in our version of Pawn (IIRC it was removed only in Pawn 3.3). Anyway, since keyword But I think we should probably consider removing |
@pawn-lang As I explained in the above post, the compiler works correctly, so this issue should probably be closed. |
Issue description:
Missing the brackets on an
if
statement gives an error about invalid subscripts:This would be a far better error:
error 001: expected token: "(", but found "-identifier-"
Minimal complete verifiable example (MCVE):
Workspace Information:
3.10.10
The text was updated successfully, but these errors were encountered: