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
dart2js allow const getters #8750
Comments
Added Area-Dart2JS, Area-Analyzer, Triaged labels. |
Removed Area-Analyzer label. |
Changed the title to: "dart2js allow const getters". |
This bug tracks the dart2js issue. I have created issue #8759 to track the analyzer issue. |
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This issue was originally filed by googlegroups...@kaioa.com
Example:
void main () {
print(new Foo(7).bar);
}
class Foo {
final x;
const Foo(this.x);
const get bar => x * 5;
}
The editor/analyzer and dart2js happily accept this. The Dart VM, however, does not. It exits with:
Internal error: [...] 'const' not allowed for methods
The text was updated successfully, but these errors were encountered: