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

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

Issue 24644004: Fix bug in container tracer, where a local would be updated with the wrong type in the expression `… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « sdk/lib/_internal/compiler/implementation/inferrer/container_tracer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/list_tracer3_test.dart
===================================================================
--- tests/compiler/dart2js/list_tracer3_test.dart (revision 27876)
+++ tests/compiler/dart2js/list_tracer3_test.dart (working copy)
@@ -16,10 +16,12 @@
const String TEST = r'''
-var myList = [42];
+var myList = [];
+var otherList = ['foo', 42];
main() {
- var a = new List(42);
- return myList[0];
+ var a = otherList[0];
+ a += 54;
+ myList.add(a);
}
''';
@@ -35,6 +37,9 @@
Expect.equals(type, mask.elementType.simplify(compiler), name);
}
- checkType('myList', compiler.typesTask.intType);
+ var interceptorType =
+ findTypeMask(compiler, 'Interceptor', 'nonNullSubclass');
+
+ checkType('myList', interceptorType);
}));
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/inferrer/container_tracer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698