Index: pkg/compiler/lib/src/ssa/builder_kernel.dart |
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart |
index fc8ff211f11ec72736b7a835b4a942cd5ce2591d..70a2a855ade55e6c756a46cd05d9888524634464 100644 |
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart |
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart |
@@ -170,6 +170,9 @@ class KernelSsaGraphBuilder extends ir.Visitor |
_targetFunction = constructor.function; |
buildConstructorBody(constructor); |
break; |
+ case MemberKind.closureField: |
+ failedAt(targetElement, "Unexpected closure field: $targetElement"); |
+ break; |
} |
assert(graph.isValid()); |
if (_targetFunction != null) { |