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

'var' not allowed when using 'final' in instance variable #729

Closed
DartBot opened this issue Dec 7, 2011 · 4 comments
Closed

'var' not allowed when using 'final' in instance variable #729

DartBot opened this issue Dec 7, 2011 · 4 comments
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue P3 A lower priority bug or feature request web-dart2js

Comments

@DartBot
Copy link

DartBot commented Dec 7, 2011

This issue was originally filed by zundel@google.com


Field3NegativeTest passes on frog. It was filed as a broken test under issue #354, but I've updated it. The 'var' and 'final' keywords are mutually exclusive:

I've updated the test as follows in http://codereview.chromium.org/8859002

class C {
  final var a = 0; // illegal: var cannot follow final.
}

main() {
  var val = new C();
  Expect.equals(val.a, 0);
}

@DartBot
Copy link
Author

DartBot commented Dec 7, 2011

This comment was originally written by zundel@google.com


(see the grammar specified in chapter 5 of the spec, "Variables")

@jmesserly
Copy link

Removed Priority-Medium label.
Added Priority-Low label.

@anders-sandholm
Copy link
Contributor

Removed Area-Frog label.
Added Area-Dart2JS, FromAreaFrog labels.

@kasperl
Copy link

kasperl commented Jun 12, 2012

Added WontFix label.

@DartBot DartBot added Type-Defect P3 A lower priority bug or feature request web-dart2js labels Jun 12, 2012
@kevmoo kevmoo added closed-not-planned Closed as we don't intend to take action on the reported issue and removed resolution-wont_fix labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue P3 A lower priority bug or feature request web-dart2js
Projects
None yet
Development

No branches or pull requests

5 participants