summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-07-11 08:05:50 +0200
committerAraq <rumpf_a@web.de>2014-07-11 08:05:50 +0200
commit49ad6fc3d46ce5af146196af6277dfd11599a849 (patch)
treedf8eb0c2c34ef7ca491c34eced2a02c871ddad84
parente4e32bdfbf72931c7e0e5692a30c3030490178e1 (diff)
downloadNim-49ad6fc3d46ce5af146196af6277dfd11599a849.tar.gz
fixes latest regression
-rw-r--r--compiler/semgnrc.nim2
-rw-r--r--todo.txt1
-rw-r--r--web/news.txt2
3 files changed, 4 insertions, 1 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim
index 1772b2546..934434951 100644
--- a/compiler/semgnrc.nim
+++ b/compiler/semgnrc.nim
@@ -101,7 +101,7 @@ proc fuzzyLookup(c: PContext, n: PNode, flags: TSemGenericFlags,
     let n = n[1]
     let ident = considerQuotedIdent(n)
     var s = searchInScopes(c, ident)
-    if s != nil:
+    if s != nil and s.kind in routineKinds:
       if withinBind in flags:
         result = newDot(result, symChoice(c, n, s, scClosed))
       elif s.name.id in ctx:
diff --git a/todo.txt b/todo.txt
index 8450cbbc3..d1387669d 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,6 +1,7 @@
 version 0.9.6
 =============
 
+- scopes are still broken for generic instantiation!
 - integrate the new LL into the devel branch
 - start experimental branch
 
diff --git a/web/news.txt b/web/news.txt
index eef71a2f7..a3019df51 100644
--- a/web/news.txt
+++ b/web/news.txt
@@ -12,6 +12,8 @@ News
   - ``spawn`` now uses an elaborate self-adapting thread pool and as such
     has been moved into its own module. So to use it, you now have to import
     ``threadpool``.
+  - The symbol binding rules in generics changed: ``bar`` in ``foo.bar`` is
+    now considered for implicit early binding.
 
 
   Library Additions