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

Unified Diff: tests/compiler/dart2js/call_site_simple_type_inferer_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/call_site_simple_type_inferer_test.dart
===================================================================
--- tests/compiler/dart2js/call_site_simple_type_inferer_test.dart (revision 24183)
+++ tests/compiler/dart2js/call_site_simple_type_inferer_test.dart (working copy)
@@ -247,14 +247,12 @@
runTest(TEST_7a, (inferrer) => [subclassOfInterceptor(inferrer)]);
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,
+ runTest(TEST_8, (inferrer) => [inferrer.intType,
subclassOfInterceptor(inferrer),
inferrer.dynamicType.nonNullable()]);
- runTest(TEST_9, (inferrer) => [inferrer.dynamicType, inferrer.dynamicType]);
- runTest(TEST_10, (inferrer) => [inferrer.dynamicType, inferrer.dynamicType]);
+ runTest(TEST_9, (inferrer) => [inferrer.intType, inferrer.intType]);
+ runTest(TEST_10, (inferrer) => [subclassOfInterceptor(inferrer),
+ subclassOfInterceptor(inferrer)]);
runTest(TEST_11, (inferrer) => [subclassOfInterceptor(inferrer),
subclassOfInterceptor(inferrer)]);
@@ -274,7 +272,8 @@
inferrer.boolType,
inferrer.doubleType]);
- runTest(TEST_18, (inferrer) => [inferrer.dynamicType, inferrer.dynamicType]);
+ runTest(TEST_18, (inferrer) => [subclassOfInterceptor(inferrer),
+ subclassOfInterceptor(inferrer)]);
}
void main() {

Powered by Google App Engine
This is Rietveld 408576698