summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-08-27 01:59:14 +0200
committerAraq <rumpf_a@web.de>2012-08-27 01:59:14 +0200
commit6bcdb9c8f429b48e534c50d3dadf7b31783aa0bf (patch)
tree1da66a9598848658f8efd440de349fb3677400d9 /compiler/sigmatch.nim
parent08d0003ed0cd4493df2486e6a1c62d7b547c735f (diff)
downloadNim-6bcdb9c8f429b48e534c50d3dadf7b31783aa0bf.tar.gz
implemented generic templates
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-xcompiler/sigmatch.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 5057883c7..a113696fe 100755
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -138,8 +138,8 @@ proc NotFoundError*(c: PContext, n: PNode) =
   var candidates = ""
   var o: TOverloadIter
   var sym = initOverloadIter(o, c, n.sons[0])
-  while sym != nil: 
-    if sym.kind in {skProc, skMethod, skIterator, skConverter}: 
+  while sym != nil:
+    if sym.kind in RoutineKinds:
       add(candidates, getProcHeader(sym))
       add(candidates, "\n")
       #debug(sym.typ)