Skip to content

Commit

Permalink
fixes #14562
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jun 5, 2020
1 parent 7cb4ef2 commit 0824fdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/semcall.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0824fdd

Please sign in to comment.