-
Notifications
You must be signed in to change notification settings - Fork 664
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
Let bindings overriding parameters #829
Comments
This is because
unfortunately there's a codegen bug with variable shadowing so the code I pasted doesn't work in elm 0.13. Not sure if it's fixed in 0.14. |
Okay. I just noticed this as it shows up as bug in the new Random library in core. I'll fix that so it isn't an issue in that library. Some kind of warning when you do this might be useful. An elm-lint tool would be useful at some point. |
A warning for variable shadowing? Yeah that would be nice, but it's not going to happen unless we expose ADTs and I don't think @evancz wants to be tied down by giving that a public interface. |
@maxsnew By ADTs, did you mean ASTs? Because that would make more sense (to me). I think we had talked about AST export, I think in theory it's a good thing to do, but compiler complexity and schedule may well intervene. |
Yeah ASTs, sorry. |
I'll open an issue for "compiler warnings" as a general concept, which should cover this issue. |
I believe the following should result in 7 but results in 2000.
The text was updated successfully, but these errors were encountered: