Using ++
for increment operator doesn't generate a useful error message
#965
nsauzede
started this conversation in
Ideas/Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Built Odin from source with clang on linux.
Expected Behavior
I expect Odin compiler to detect an invalid syntax when using invalid operator
++
,and generate a useful indication of what's to be done to fix the error.
I would have imagined an error message like that :
Current Behavior
Odin compiler seems to not issue a proper error message telling that
++
operator is invalidRather, it prints that :
Which is not useful, as it's one line below, and not related to the invalid (??) '++' token
Failure Information (for bugs)
Unsure if it's really a (parser ?) "bug"
Steps to Reproduce
Here is the Odin source generating the unclear error message :
$ cat bug.odin
Failure Logs
Here is the generated unclear error message :
Beta Was this translation helpful? Give feedback.
All reactions