diff options
author | Araq <rumpf_a@web.de> | 2012-08-27 01:59:14 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-27 01:59:14 +0200 |
commit | 6bcdb9c8f429b48e534c50d3dadf7b31783aa0bf (patch) | |
tree | 1da66a9598848658f8efd440de349fb3677400d9 /compiler/sigmatch.nim | |
parent | 08d0003ed0cd4493df2486e6a1c62d7b547c735f (diff) | |
download | Nim-6bcdb9c8f429b48e534c50d3dadf7b31783aa0bf.tar.gz |
implemented generic templates
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-x | compiler/sigmatch.nim | 4 |
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) |