| Index: lib/compiler/implementation/resolver.dart
|
| diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
|
| index 30e633ce5e4c08ce6841f6169a1e575c27e2de1c..373d01e14180cde4112be7ea551770e63a273bd2 100644
|
| --- a/lib/compiler/implementation/resolver.dart
|
| +++ b/lib/compiler/implementation/resolver.dart
|
| @@ -1372,9 +1372,6 @@ 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);
|
|
|