diff options
-rw-r--r-- | compiler/semcall.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index c6e12facf..665eb4ea4 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: |