Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Issue 2947043002: Updated parser to produce error when trying to reinitialize final variables in class constructors. … (Closed)

Created:
3 years, 6 months ago by bkonyi
Modified:
3 years, 6 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Updated parser to produce error when trying to reinitialize final variables in class constructors. Fixes issue #29658. BUG= R=zra@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/9755a98b003a09a0f3aa76b610bcf715e58b0baa

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added issue #'s to status file updates, fixed language const_error_multiply test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -2 lines) Patch
M runtime/vm/parser.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 3 chunks +49 lines, -0 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 1 chunk +6 lines, -0 lines 0 comments Download
M tests/language/const_error_multiply_initialized_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
A tests/language/final_attempt_reinitialization_test.dart View 1 chunk +23 lines, -0 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language/language_kernel.status View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
bkonyi
Same change that was submitted yesterday, but with (hopefully) corrected status files.
3 years, 6 months ago (2017-06-20 21:18:57 UTC) #2
zra
lgtm w/ issue references https://codereview.chromium.org/2947043002/diff/1/tests/co19/co19-runtime.status File tests/co19/co19-runtime.status (right): https://codereview.chromium.org/2947043002/diff/1/tests/co19/co19-runtime.status#newcode17 tests/co19/co19-runtime.status:17: Language/Classes/Constructors/Generative_Constructors/initializing_formals_execution_t02: CompileTimeError Are there issues ...
3 years, 6 months ago (2017-06-20 21:24:40 UTC) #3
bkonyi
Updated an additional test so I could remove some of the status file changes. PTAL ...
3 years, 6 months ago (2017-06-20 21:35:12 UTC) #4
zra
lgtm
3 years, 6 months ago (2017-06-20 21:38:32 UTC) #5
bkonyi
3 years, 6 months ago (2017-06-20 21:40:47 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
9755a98b003a09a0f3aa76b610bcf715e58b0baa (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698