| Index: lib/compiler/implementation/resolver.dart
|
| diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
|
| index 7d3eae2b4d500f482a329245e9f842c19d815ab9..81abde52513a04830c7bd48ab67ebfee35a689a1 100644
|
| --- a/lib/compiler/implementation/resolver.dart
|
| +++ b/lib/compiler/implementation/resolver.dart
|
| @@ -1369,6 +1369,9 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
|
| } else {
|
| name = node.name.asIdentifier().source;
|
| }
|
| + if (scope.element.kind == ElementKind.VARIABLE_LIST) {
|
| + compiler.internalError("Bad enclosing element", node: node);
|
| + }
|
| FunctionElement enclosing = new FunctionElement.node(
|
| name, node, ElementKind.FUNCTION, Modifiers.EMPTY,
|
| scope.element);
|
|
|