This commit is contained in:
Hackerpilot 2016-02-04 15:18:49 -08:00
parent c80fbc6c47
commit 5099545546
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 4bcc25da4564957fa714ae05151851cc84f67eb1
Subproject commit 07e73629cbe8c4253cd0c0af6b9951761b82f608

View File

@ -29,7 +29,10 @@ final class MismatchedArgumentCheck : BaseAnalyzer
const istring[] args = argVisitor.args;
auto identVisitor = scoped!IdentVisitor;
identVisitor.visit(fce.unaryExpression);
if (fce.unaryExpression !is null)
identVisitor.visit(fce.unaryExpression);
else if (fce.type !is null)
identVisitor.visit(fce.type);
const(DSymbol)*[] symbols = resolveSymbol(sc, identVisitor.names.length > 0
? identVisitor.names : [CONSTRUCTOR_SYMBOL_NAME]);