Fix #305
This commit is contained in:
parent
c80fbc6c47
commit
5099545546
|
@ -1 +1 @@
|
|||
Subproject commit 4bcc25da4564957fa714ae05151851cc84f67eb1
|
||||
Subproject commit 07e73629cbe8c4253cd0c0af6b9951761b82f608
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue