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
Example code:
class C { final int x; C() : x = (){ return 42; }(); }
main() { print(new C().x); }
This errs with the message: initcall.dart:3:28: unexpected token '(' C() : x = (){ return 42; }();
The grammar allows the syntax.
The text was updated successfully, but these errors were encountered:
Added this to the Later milestone. Removed Priority-Unassigned label. Added Priority-Medium label.
Sorry, something went wrong.
This comment was originally written by @mhausner
See issue #11509. I think this is a spec issue, not a compiler bug.
cc @gbracha.
It's a defect in the grammar.
Added Duplicate label. Marked as being merged into #11509.
Thank you for keeping us updated, Matthias!
No branches or pull requests
Example code:
class C {
final int x;
C() : x = (){ return 42; }();
}
main() {
print(new C().x);
}
This errs with the message:
initcall.dart:3:28: unexpected token '('
C() : x = (){ return 42; }();
The grammar allows the syntax.
The text was updated successfully, but these errors were encountered: