'var' not allowed when using 'final' in instance variable #729
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
This issue was originally filed by [email protected]
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);
}
The text was updated successfully, but these errors were encountered: