diff options
author | Araq <rumpf_a@web.de> | 2020-06-05 16:15:13 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-06-05 16:15:13 +0200 |
commit | 0824fdd06100282a853fa50efb66e2161f4235d8 (patch) | |
tree | 7aa82ad07170c05399fe7a637f9738eb0531b7be /compiler | |
parent | 7cb4ef26addb3bb5ce2405d8396df6fd41664dae (diff) | |
download | Nim-0824fdd06100282a853fa50efb66e2161f4235d8.tar.gz |
fixes #14562
Diffstat (limited to 'compiler')
-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: |