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

Unified Diff: test/checker/checker_test.dart

Issue 1038213003: Downward inference (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/testing.dart ('k') | test/checker/inferred_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/checker_test.dart
diff --git a/test/checker/checker_test.dart b/test/checker/checker_test.dart
index 594dab6d1bcc512383d01c700e62f59c5a52dbc1..fa98ddb4eb7893a558ca14439fe710f47349f4d2 100644
--- a/test/checker/checker_test.dart
+++ b/test/checker/checker_test.dart
@@ -1489,21 +1489,21 @@ void main() {
List l1 = [1, 2, 3];
l1 = <int>[1, 2, 3];
- Iterable<int> i2 = /*warning:InferableLiteral*/[1, 2, 3];
+ Iterable<int> i2 = /*severe:StaticTypeError*/[1, 2, 3];
i2 = /*warning:DownCastComposite*/i1;
i2 = /*warning:DownCastComposite*/l1;
i2 = <int>[1, 2, 3];
- List<int> l2 = /*warning:InferableLiteral*/[1, 2, 3];
+ List<int> l2 = /*severe:StaticTypeError*/[1, 2, 3];
l2 = /*warning:DownCastComposite*/i1;
l2 = /*warning:DownCastComposite*/l1;
- l2 = /*warning:InferableAllocation*/new List();
- l2 = /*warning:InferableAllocation*/new List(10);
- l2 = /*warning:InferableAllocation*/new List.filled(10, 42);
+ l2 = /*severe:StaticTypeError*/new List();
+ l2 = /*severe:StaticTypeError*/new List(10);
+ l2 = /*severe:StaticTypeError*/new List.filled(10, 42);
}
'''
- });
+ }, inferDownwards: false);
});
test('Type checking literals', () {
« no previous file with comments | « lib/src/testing.dart ('k') | test/checker/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698