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

Unified Diff: tests/compiler/dart2js/simple_inferrer_and_or_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/simple_inferrer_and_or_test.dart
===================================================================
--- tests/compiler/dart2js/simple_inferrer_and_or_test.dart (revision 23010)
+++ tests/compiler/dart2js/simple_inferrer_and_or_test.dart (working copy)
@@ -62,7 +62,8 @@
checkReturn(String name, type) {
var element = findElement(compiler, name);
- Expect.equals(type, typesInferrer.internal.returnTypeOf[element]);
+ Expect.equals(type,
+ typesInferrer.internal.returnTypeOf[element].simplify(compiler));
}
var subclassOfInterceptor =
@@ -71,7 +72,7 @@
checkReturn('returnDyn1', subclassOfInterceptor);
checkReturn('returnDyn2', subclassOfInterceptor);
checkReturn('returnDyn3', subclassOfInterceptor);
- checkReturn('returnDyn4', typesInferrer.dynamicType);
- checkReturn('returnDyn5', typesInferrer.dynamicType);
- checkReturn('returnDyn6', typesInferrer.dynamicType);
+ checkReturn('returnDyn4', typesInferrer.dynamicType.nonNullable());
+ checkReturn('returnDyn5', typesInferrer.dynamicType.nonNullable());
+ checkReturn('returnDyn6', typesInferrer.dynamicType.nonNullable());
}
« no previous file with comments | « tests/compiler/dart2js/return_type_inferer_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_final_field3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698