breaking change: hygienic templates (undocumented)
This commit is contained in:
parent
da190876de
commit
5a4659c147
1 changed files with 3 additions and 1 deletions
|
|
@ -51,6 +51,8 @@ proc symChoice(c: PContext, n: PNode, s: PSym): PNode =
|
||||||
inc(i)
|
inc(i)
|
||||||
if i > 1: break
|
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)
|
result = newSymNode(s, n.info)
|
||||||
markUsed(n, s)
|
markUsed(n, s)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue