Skip to content

Commit

Permalink
fix UFCS server crash when first arg has no type
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Mar 16, 2023
1 parent a73bb94 commit 8ed150f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsymbol/src/dsymbol/ufcs.d
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ bool isCallableWithArg(const(DSymbol)* incomingSymbol, const(DSymbol)* beforeDot
}

if (incomingSymbol.kind == CompletionKind.functionName && !incomingSymbol
.functionParameters.empty)
.functionParameters.empty && incomingSymbol.functionParameters.front.type)
{
return beforeDotType is incomingSymbol.functionParameters.front.type
|| willImplicitBeUpcasted(beforeDotType.name, incomingSymbol
Expand Down

0 comments on commit 8ed150f

Please sign in to comment.