Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
index 8d93df53e28ca74ea38502be8f37e6b39469a198..eca84354e80810b6cb60aa1e488822d9accd27c4 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
@@ -2035,7 +2035,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
void beginLabeledStatement(Token token, int labelCount) { |
debugEvent("beginLabeledStatement"); |
List<Label> labels = popList(labelCount); |
- enterLocalScope(); |
+ enterLocalScope(scope.createNestedLabelScope()); |
LabelTarget target = |
new LabelTarget(member, functionNestingLevel, token.charOffset); |
for (Label label in labels) { |