diff --git a/analysis/builtin_property_names.d b/analysis/builtin_property_names.d index 5ba02e3..a5ff956 100644 --- a/analysis/builtin_property_names.d +++ b/analysis/builtin_property_names.d @@ -45,6 +45,14 @@ class BuiltinPropertyNameCheck : BaseAnalyzer fd.accept(this); } + override void visit(const FunctionBody functionBody) + { + int d = depth; + scope(exit) depth = d; + depth = 0; + functionBody.accept(this); + } + override void visit(const AutoDeclaration ad) { if (depth > 0) foreach (i; ad.identifiers)