fixes #14562
This commit is contained in:
parent
7cb4ef26ad
commit
0824fdd061
1 changed files with 4 additions and 1 deletions
|
|
@ -527,7 +527,10 @@ proc semResolvedCall(c: PContext, x: TCandidate,
|
||||||
for s in instantiateGenericParamList(c, gp, x.bindings):
|
for s in instantiateGenericParamList(c, gp, x.bindings):
|
||||||
case s.kind
|
case s.kind
|
||||||
of skConst:
|
of skConst:
|
||||||
|
if not s.ast.isNil:
|
||||||
x.call.add s.ast
|
x.call.add s.ast
|
||||||
|
else:
|
||||||
|
x.call.add c.graph.emptyNode
|
||||||
of skType:
|
of skType:
|
||||||
x.call.add newSymNode(s, n.info)
|
x.call.add newSymNode(s, n.info)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue