Index: pkg/compiler/lib/src/ssa/builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart |
index c957ed0c2340f50a401eb4e2e6df4057037cc251..e73402f22848ee5a843f09afeb1d28f72ccb9e09 100644 |
--- a/pkg/compiler/lib/src/ssa/builder.dart |
+++ b/pkg/compiler/lib/src/ssa/builder.dart |
@@ -638,7 +638,8 @@ class SsaBuilder extends ast.Visitor |
ClassElement get currentNonClosureClass { |
ClassElement cls = sourceElement.enclosingClass; |
if (cls != null && cls.isClosure) { |
- var closureClass = cls; |
+ dynamic closureClass = cls; |
+ // ignore: UNDEFINED_GETTER |
return closureClass.methodElement.enclosingClass; |
} else { |
return cls; |