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

Unified Diff: tests/compiler/dart2js/call_site_simple_type_inferer_test.dart

Issue 14997006: Introduce a UnionTypeMask, currently limited to 4 types. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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
Index: tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
===================================================================
--- tests/compiler/dart2js/call_site_simple_type_inferer_test.dart (revision 23010)
+++ tests/compiler/dart2js/call_site_simple_type_inferer_test.dart (working copy)
@@ -222,7 +222,7 @@
int index = 0;
signature.forEachParameter((Element element) {
Expect.equals(expectedTypes[index++],
- inferrer.internal.typeOf[element]);
+ inferrer.internal.typeOf[element].simplify(inferrer.compiler));
});
Expect.equals(index, expectedTypes.length);
});
@@ -245,14 +245,14 @@
runTest(TEST_5, (inferrer) => [inferrer.numType]);
runTest(TEST_6, (inferrer) => [inferrer.numType]);
runTest(TEST_7a, (inferrer) => [subclassOfInterceptor(inferrer)]);
- runTest(TEST_7b, (inferrer) => [inferrer.dynamicType]);
+ runTest(TEST_7b, (inferrer) => [inferrer.dynamicType.nonNullable()]);
// In the following tests, we can't infer the right types because we
// have recursive calls with the same parameters. We should build a
// constraint system for those, to find the types.
runTest(TEST_8, (inferrer) => [inferrer.dynamicType,
subclassOfInterceptor(inferrer),
- inferrer.dynamicType]);
+ inferrer.dynamicType.nonNullable()]);
runTest(TEST_9, (inferrer) => [inferrer.dynamicType, inferrer.dynamicType]);
runTest(TEST_10, (inferrer) => [inferrer.dynamicType, inferrer.dynamicType]);
runTest(TEST_11, (inferrer) => [subclassOfInterceptor(inferrer),

Powered by Google App Engine
This is Rietveld 408576698