summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-06-05 16:15:13 +0200
committerAraq <rumpf_a@web.de>2020-06-05 16:15:13 +0200
commit0824fdd06100282a853fa50efb66e2161f4235d8 (patch)
tree7aa82ad07170c05399fe7a637f9738eb0531b7be /compiler
parent7cb4ef26addb3bb5ce2405d8396df6fd41664dae (diff)
downloadNim-0824fdd06100282a853fa50efb66e2161f4235d8.tar.gz
fixes #14562
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semcall.nim5
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: