We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dart2js does not catch that nested functions are immutable.
The following program "works": === main() { foo() { foo = () => 499; print(foo()); } foo(); } ===
For more complicated programs the compiler crashes.
The text was updated successfully, but these errors were encountered:
Just sent out a possible fix in https://codereview.chromium.org/1073983003/, but I'm not sure if it is the approach you want to use here.
I'm basically marking the element of named local functions as final, so no setter is available.
Sorry, something went wrong.
fixed in r45123
Added Fixed label.
johnniwinther
No branches or pull requests
dart2js does not catch that nested functions are immutable.
The following program "works":
===
main() {
foo() {
foo = () => 499;
print(foo());
}
foo();
}
===
For more complicated programs the compiler crashes.
The text was updated successfully, but these errors were encountered: