Skip to content
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

Closed
DartBot opened this issue Feb 24, 2013 · 9 comments
Closed

dart2js allow const getters #8750

DartBot opened this issue Feb 24, 2013 · 9 comments
Assignees

Comments

@DartBot
Copy link

DartBot commented Feb 24, 2013

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

@lrhn
Copy link
Member

lrhn commented Feb 25, 2013

Added Area-Dart2JS, Area-Analyzer, Triaged labels.

@peter-ahe-google
Copy link
Contributor

Removed Area-Analyzer label.

@peter-ahe-google
Copy link
Contributor

Changed the title to: "dart2js allow const getters".

@peter-ahe-google
Copy link
Contributor

This bug tracks the dart2js issue. I have created issue #8759 to track the analyzer issue.

@kasperl
Copy link

kasperl commented Apr 22, 2013

Added this to the Later milestone.

@kasperl
Copy link

kasperl commented May 23, 2013

Added TriageForM5 label.

@kasperl
Copy link

kasperl commented May 28, 2013

Removed TriageForM5 label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants