This commit is contained in:
Araq 2020-06-05 16:15:13 +02:00
commit 0824fdd061

View file

@ -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: