From 0824fdd06100282a853fa50efb66e2161f4235d8 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 5 Jun 2020 16:15:13 +0200 Subject: [PATCH] fixes #14562 --- compiler/semcall.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/semcall.nim b/compiler/semcall.nim index c6e12facf4..665eb4ea45 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -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: