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

View File

@@ -527,7 +527,10 @@ proc semResolvedCall(c: PContext, x: TCandidate,
for s in instantiateGenericParamList(c, gp, x.bindings):
case s.kind
of skConst:
x.call.add s.ast
if not s.ast.isNil:
x.call.add s.ast
else:
x.call.add c.graph.emptyNode
of skType:
x.call.add newSymNode(s, n.info)
else: