Fix part of #305

This commit is contained in:
Hackerpilot 2016-02-07 00:46:40 -08:00
parent d2502be9e9
commit c252b3420e
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ class AutoRefAssignmentCheck : BaseAnalyzer
super(fileName, null);
}
override void visit(const Module m)
{
pushScope();
m.accept(this);
popScope();
}
override void visit(const FunctionDeclaration func)
{
if (func.parameters is null || func.parameters.parameters.length == 0)