|
|
Constrain constant references from deferred libraries
Now any reference to a constant from a deferred library in a constant context will give an static error.
Also fixed the const-new expression constraint so it works with named constructors.
Split the deferred_constraints_test into deferred_constraints_type_annotation_test and deferred_constraints_constants_test
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=33734
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+183 lines, -166 lines) |
Patch |
 |
M |
sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
View
|
1
|
2 chunks |
+37 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/warnings.dart
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
D |
tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_constraints_constants_lib.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/language/deferred_constraints_constants_test.dart
|
View
|
1
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/deferred_constraints_lib.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
D |
tests/language/deferred_constraints_test.dart
|
View
|
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_constraints_type_annotation_test.dart
|
View
|
|
2 chunks |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
|
1 chunk |
+21 lines, -21 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_analyzer.status
|
View
|
|
1 chunk |
+22 lines, -16 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_analyzer2.status
|
View
|
|
1 chunk |
+22 lines, -16 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_dart2js.status
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|