From b5102bcfd548127fc528c37d0e487308a6dd1ec5 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Mon, 25 Jan 2016 15:15:01 -0800 Subject: [PATCH] Fix #300 --- libdparse | 2 +- src/analysis/label_var_same_name_check.d | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libdparse b/libdparse index b1f5058..725529f 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit b1f505857e89277bd72e3ea50bbd94d56b686abe +Subproject commit 725529f0da46d11b1599337d501725f2bbd29ef3 diff --git a/src/analysis/label_var_same_name_check.d b/src/analysis/label_var_same_name_check.d index 599c14b..c45ed9c 100644 --- a/src/analysis/label_var_same_name_check.d +++ b/src/analysis/label_var_same_name_check.d @@ -41,6 +41,13 @@ class LabelVarNameCheck : BaseAnalyzer popScope(); } + override void visit(const CaseStatement caseStatement) + { + pushScope(); + caseStatement.accept(this); + popScope(); + } + override void visit(const VariableDeclaration var) { foreach (dec; var.declarators)