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)