|
|
Add check for duplicate field initialization
This change adds a check that reports duplicate initialization
of instance fields. Fixes issues 921 and 1034.
There were several tests in the language suite that had duplicate
initializers for final instance fields. Corrected the tests.
dart2js also contained duplicate initializations of a couple
of final fields.
Committed: https://code.google.com/p/dart/source/detail?r=10146
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+65 lines, -42 lines) |
Patch |
 |
M |
lib/compiler/implementation/universe.dart
|
View
|
1
2
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.h
|
View
|
1
2
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
1
2
|
10 chunks |
+39 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tests/co19/co19-runtime.status
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tests/language/compile_time_constant_d_test.dart
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/language/compile_time_constant_e_test.dart
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/language/compile_time_constant_f_test.dart
|
View
|
1
2
|
3 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
tests/language/compile_time_constant_g_test.dart
|
View
|
1
2
|
4 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
tests/language/compile_time_constant_h_test.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/language/compile_time_constant_i_test.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|