-
-
Notifications
You must be signed in to change notification settings - Fork 667
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
[Bug] Compiler crashes on variable shadowing #1987
Labels
Comments
evaporei
changed the title
Compiler crashes on variable shadowing
[Bug] Compiler crashes on variable shadowing
Jul 16, 2021
Hmm, this looks like it would generate the proper diagnostic about a duplicate name, but before it is able to emit it hits the assertion otherwise. Definitely a bug, thanks! |
HerrCai0907
added a commit
to HerrCai0907/assemblyscript
that referenced
this issue
Jul 24, 2021
HerrCai0907
added a commit
to HerrCai0907/assemblyscript
that referenced
this issue
Jul 24, 2021
HerrCai0907
added a commit
to HerrCai0907/assemblyscript
that referenced
this issue
Jul 24, 2021
HerrCai0907
added a commit
to HerrCai0907/assemblyscript
that referenced
this issue
Jul 24, 2021
HerrCai0907
added a commit
to HerrCai0907/assemblyscript
that referenced
this issue
Jul 24, 2021
MaxGraey
pushed a commit
that referenced
this issue
Jul 27, 2021
close issue |
not yet shipped. But it fixed in (#2002) |
It has been shipped on v0.19.10! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
The compiler crashes like this:
When
Doing variable shadowing like this:
Expected
It would be nice to have some kind of user friendly error message on this. It seems like a very simple error, but the problem is that I'm working in a huge codebase and it was a bit annoying to find that it was a problem with variable shadowing.
Context
By the way I only got this problem because we're updating from v0.6 to v0.19, so yeah quite a big jump 😅 .
And yeah, shadowing didn't seem to be a problem back then.
I have no problems in this feature not existing anymore (variable shadowing), I would just be more pleased to have a better error message, if possible 😊 .
Thanks
Also, huge thanks for this project, we use extensively here at The Graph (@graphprotocol).
The text was updated successfully, but these errors were encountered: