Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
index e944505601164c668aab42a308a9f4e9e0d11feb..278e8009aefd1f5e80cbc64889ec83823f4221ee 100644 |
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
@@ -2359,10 +2359,10 @@ class ResolverVisitor extends CommonResolverVisitor<Element> { |
visitForIn(ForIn node) { |
for (final name in const [ |
const SourceString('iterator'), |
- const SourceString('next')]) { |
- registerImplicitInvocation(name, 0); |
+ const SourceString('current')]) { |
+ registerImplicitFieldGet(name); |
} |
- registerImplicitFieldGet(const SourceString('hasNext')); |
+ registerImplicitInvocation(const SourceString('moveNext'), 0); |
visit(node.expression); |
Scope blockScope = new BlockScope(scope); |
Node declaration = node.declaredIdentifier; |