Index: pkg/kernel/lib/transformations/closure/converter.dart |
diff --git a/pkg/kernel/lib/transformations/closure/converter.dart b/pkg/kernel/lib/transformations/closure/converter.dart |
index 0824b432e9c3a4afcc25579d19bb7b51fca33d25..10fcf13eeb63f9e898433b02fc5382df16c0aeab 100644 |
--- a/pkg/kernel/lib/transformations/closure/converter.dart |
+++ b/pkg/kernel/lib/transformations/closure/converter.dart |
@@ -15,6 +15,7 @@ import '../../ast.dart' |
Constructor, |
DartType, |
DoStatement, |
+ DynamicType, |
EmptyStatement, |
Expression, |
ExpressionStatement, |
@@ -53,7 +54,6 @@ import '../../ast.dart' |
VariableGet, |
VariableSet, |
VectorCreation, |
- VectorType, |
WhileStatement, |
transformList; |
@@ -370,7 +370,7 @@ class ClosureConverter extends Transformer { |
rewriter = makeRewriterForBody(function); |
VariableDeclaration contextVariable = |
- new VariableDeclaration("#contextParameter", type: const VectorType()); |
+ new VariableDeclaration("#contextParameter", type: const DynamicType()); |
Context parent = context; |
context = context.toNestedContext( |
new VariableAccessor(contextVariable, null, TreeNode.noOffset)); |