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

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

Issue 15818003: - Inline iterator calls made for a "for in". (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/field_type_simple_inferer_test.dart
===================================================================
--- tests/compiler/dart2js/field_type_simple_inferer_test.dart (revision 23246)
+++ tests/compiler/dart2js/field_type_simple_inferer_test.dart (working copy)
@@ -334,11 +334,13 @@
const String TEST_20 = r"""
class A {
var f;
- A(x) {
- for (var i in this) {
+ A() {
+ for (f in this) {
}
- f = 42;
}
+ get iterator => this;
+ get current => 42;
+ bool moveNext() => false;
}
main() {
new A();
@@ -508,7 +510,7 @@
runTest(TEST_19, {'f1': (inferrer) => inferrer.intType,
'f2': (inferrer) => inferrer.stringType,
'f3': (inferrer) => inferrer.dynamicType});
- runTest(TEST_20, {'f': (inferrer) => inferrer.intType});
+ runTest(TEST_20, {'f': (inferrer) => inferrer.intType.nullable()});
runTest(TEST_21, {'f': (inferrer) => inferrer.intType.nullable()});
runTest(TEST_22, {'f1': (inferrer) => inferrer.intType,

Powered by Google App Engine
This is Rietveld 408576698