summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-08-20 21:59:42 +0200
committerAraq <rumpf_a@web.de>2012-08-20 21:59:42 +0200
commit5a4659c147db5a8f25d809ae4d792448437862e1 (patch)
treec5f2862ae052a08b4d652790a86e9e47522784b3
parentda190876de0d500c94d23c64eb372d3bb8e2bb09 (diff)
downloadNim-5a4659c147db5a8f25d809ae4d792448437862e1.tar.gz
breaking change: hygienic templates (undocumented)
-rwxr-xr-xcompiler/semtempl.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim
index 62b4f06dd..a67797a32 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: