DescriptionUpdated parser to produce error when trying to reinitialize final variables in class constructors. Fixes issue #29658.
BUG=
R=asiva@google.com
Example:
Foo {
final int x = 10;
Foo(this.x); // Error
Foo.named() : x = 42; // Error
}
Committed: https://github.com/dart-lang/sdk/commit/b5cff3f68f728af87f88f2f76eecfb224e303278
Patch Set 1 #
Total comments: 11
Patch Set 2 : Added test, addressed comments #
Total comments: 10
Patch Set 3 : Addressed asiva's comments #
Total comments: 6
Patch Set 4 : Addressed more of asiva's comments #
Total comments: 1
Patch Set 5 : Addressed final comment #
Messages
Total messages: 12 (2 generated)
|