Index: sdk/lib/_internal/compiler/implementation/closure.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/closure.dart b/sdk/lib/_internal/compiler/implementation/closure.dart |
index 4d6be1c78fbc59b06ae6509edd36b22eb0652fd5..3d5feef0376368bca40e3c67adf84a8c80ed7124 100644 |
--- a/sdk/lib/_internal/compiler/implementation/closure.dart |
+++ b/sdk/lib/_internal/compiler/implementation/closure.dart |
@@ -371,7 +371,7 @@ class ClosureTranslator extends Visitor { |
return true; |
} else if (type is InterfaceType) { |
InterfaceType ifcType = type; |
- for (DartType argument in ifcType.arguments) { |
+ for (DartType argument in ifcType.typeArguments) { |
if (hasTypeVariable(argument)) { |
return true; |
} |
@@ -385,7 +385,7 @@ class ClosureTranslator extends Visitor { |
useLocal(type.element); |
} else if (type is InterfaceType) { |
InterfaceType ifcType = type; |
- for (DartType argument in ifcType.arguments) { |
+ for (DartType argument in ifcType.typeArguments) { |
analyzeTypeVariables(argument); |
} |
} |