foreach missing body crash fix (#515)

This commit is contained in:
Jan Jurzitza 2017-08-13 14:14:02 +02:00 committed by Basile Burg
parent 34f893d29f
commit 142e284588
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ class UnmodifiedFinder : BaseAnalyzer
foreachStatement.low.accept(this);
interest--;
}
foreachStatement.declarationOrStatement.accept(this);
if (foreachStatement.declarationOrStatement !is null)
foreachStatement.declarationOrStatement.accept(this);
}
override void visit(const TraitsExpression)