-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
error: invalid expression: unexpected keyword for
#18838
Comments
All 3 lines should be errors, actually. V shouldn't allow all uppercase for The other 2 lines should be |
On this other example:
This error is: So when, I change the constant that is in uppercase format to snake-case format, in lines 1 and 6, the error in line 9 disappears. |
Those are the same as your first example. The |
Now, on this other example:
The error is: |
It doesn't matter how many examples you give. It is all because V should not allow the uppercase |
Describe the bug
On code below:
this error has occurred:
If I fix this warning of line 1, changing const name CMB_CONJUNTO_QT_DE_BOLAS for conjunto_qt_de_bolas, the error of line 7:3 ends.
If you noticed, the lines below:
were repeated 2 times, on lines, from 6 to 10, and, from 12 a 16, but, "v", have report error only on line 7.
Expected Behavior
Line 1, really, it is a warning.
Visually, and syntactically, line 7 and line 12 have no error.
Although, in the previous line, 6, after the token "==", "v" knows that it is a constant, but in line "1", it says that the whole constant must be written in "snake_case", when line "1" is corrected, line 7 does not display any errors anymore.
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
V version
V full version: V 0.4.0 5355c67
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: