-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
local variable with module before should give a compiler error #10658
Comments
Is there a typo in your command here, or was it when you actually used it? It should be Also, since you didn't include |
Afaik, it is not allowed to edit a global in another module, is it ? |
Globals should be... global. If they're allowed at all. |
Yeah, it was a typo in this issue. But I use the correct |
this actually isn't a global, v treats it as a local scoped variable. |
I don't get it |
lol, I had a typo :O |
Then this should be a compiler error because this is not a valid variable name. |
This issue still exists |
no, you have to create an mymod module |
V doctor:
What did you do?
v -enable-globals -g -o vdbg cmd/v && vdbg main.v
What did you expect to see?
compiler error
What did you see instead?
The text was updated successfully, but these errors were encountered: