diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 62b4f06dd7..a67797a32e 100755 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -50,7 +50,9 @@ proc symChoice(c: PContext, n: PNode, s: PSym): PNode = a = nextOverloadIter(o, c, n) inc(i) if i > 1: break - if i <= 1: + if i <= 1: + # XXX this makes more sense but breaks bootstrapping for now: + # and s.kind notin routineKinds: result = newSymNode(s, n.info) markUsed(n, s) else: