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

Issue 10834327: Produce error when duplicate field initializers are found (Closed)

Created:
8 years, 4 months ago by aam-me
Modified:
8 years, 4 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Produce error when duplicate field initializers are found BUG=dart-1035 TEST= Committed: https://code.google.com/p/dart/source/detail?r=10947

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed comment, removed redundant compiler parameter #

Patch Set 3 : Fix type mismatch error #

Patch Set 4 : Added test against duplicate field initializion in initializing formals. Fixed the test. #

Patch Set 5 : Remove existing test from list of failed tests #

Patch Set 6 : Fix type error #

Total comments: 8

Patch Set 7 : == -> ===, improved test, removed unnecessary "defensive" null checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -10 lines) Patch
M lib/compiler/implementation/resolver.dart View 1 2 3 4 5 6 3 chunks +20 lines, -6 lines 0 comments Download
M tests/co19/co19-leg.status View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/constructor_duplicate_initializers_test.dart View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
ahe
LGTM! I'll submit the patch when you have addressed the comments. Thanks again for fixing ...
8 years, 4 months ago (2012-08-15 10:47:07 UTC) #1
aam-me
All should be taken care of, Peter. Thank you for the code review.
8 years, 4 months ago (2012-08-15 12:50:30 UTC) #2
aam-me
Please, hold this codereview - running tests with --host-checked and seeing errors.
8 years, 4 months ago (2012-08-15 12:55:12 UTC) #3
aam-me
Should be fixed now. Please, review.
8 years, 4 months ago (2012-08-16 01:18:56 UTC) #4
ahe
Hi Alexander, Did you consider this case: class Fisk { var x; Fisk(this.x, this.x); } ...
8 years, 4 months ago (2012-08-16 07:00:46 UTC) #5
aam-me
Now I have, Peter. Thank you for pointing this out. Changes are again ready for ...
8 years, 4 months ago (2012-08-16 11:32:26 UTC) #6
ahe
Only minor nits now. https://chromiumcodereview.appspot.com/10834327/diff/3004/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10834327/diff/3004/lib/compiler/implementation/resolver.dart#newcode432 lib/compiler/implementation/resolver.dart:432: void checkForDuplicateInitializers(SourceString name, Node init) ...
8 years, 4 months ago (2012-08-16 11:56:43 UTC) #7
aam-me
On 2012/08/16 11:56:43, ahe wrote: > Only minor nits now. Thank you for your patience ...
8 years, 4 months ago (2012-08-16 12:28:16 UTC) #8
aam-me
https://chromiumcodereview.appspot.com/10834327/diff/3004/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10834327/diff/3004/lib/compiler/implementation/resolver.dart#newcode562 lib/compiler/implementation/resolver.dart:562: if (functionParameters != null) { On 2012/08/16 11:56:43, ahe ...
8 years, 4 months ago (2012-08-16 12:28:58 UTC) #9
ahe
LGTM, I'll commit this tomorrow (unless I forget, so please remind me if you don't ...
8 years, 4 months ago (2012-08-16 18:23:27 UTC) #10
aam-me
Yes, agree with failing early on mistakes. Failing early on unexpected, unforeseen circumstances could be ...
8 years, 4 months ago (2012-08-17 02:28:59 UTC) #11
ahe
8 years, 4 months ago (2012-08-20 12:41:49 UTC) #12

Powered by Google App Engine
This is Rietveld 408576698