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

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

Issue 17017003: Introduce an ElementTypeMask to recognize simple constraints like "the type of parameter foo is the… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/concrete_type_inference_test.dart
===================================================================
--- tests/compiler/dart2js/concrete_type_inference_test.dart (revision 24183)
+++ tests/compiler/dart2js/concrete_type_inference_test.dart (working copy)
@@ -34,7 +34,7 @@
printElement.computeSignature(compiler).requiredParameters.head;
var type = compiler.typesTask.getGuaranteedTypeOfElement(parameter);
var inferrer = compiler.typesTask.typesInferrer;
- Expect.identical(inferrer.dynamicType, type);
+ Expect.identical(inferrer.dynamicType, type.simplify(compiler));
});
compileAndFind(
@@ -63,7 +63,7 @@
});
checkPrintType('[]', (compiler, type) {
var inferrer = compiler.typesTask.typesInferrer;
- if (type.isContainer) type = type.asFlat;
+ if (type.isForwarding) type = type.forwardTo;
Expect.identical(inferrer.growableListType, type);
});
checkPrintType('null', (compiler, type) {
« no previous file with comments | « tests/compiler/dart2js/call_site_simple_type_inferer_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698