diff options
author | Araq <rumpf_a@web.de> | 2012-08-02 23:14:38 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-02 23:14:38 +0200 |
commit | 7d6500f1de19379cdfc9c6f8a05d43781cf32291 (patch) | |
tree | 010e7c625639b3bb3a0f397c19f4d7d06bf76120 /compiler/sigmatch.nim | |
parent | 559980c8901fe56aa8b410c6427fd1467dd69794 (diff) | |
download | Nim-7d6500f1de19379cdfc9c6f8a05d43781cf32291.tar.gz |
idetools improvements; preparation of first class iterators; fixes #183
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-x | compiler/sigmatch.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index ba0cba749..9273d5add 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -70,7 +70,7 @@ proc initCandidate*(c: var TCandidate, callee: PSym, binding: PNode, c.calleeSym = callee c.calleeScope = calleeScope initIdTable(c.bindings) - if binding != nil: + if binding != nil and callee.kind in RoutineKinds: var typeParams = callee.ast[genericParamsPos] for i in 1..min(sonsLen(typeParams), sonsLen(binding)-1): var formalTypeParam = typeParams.sons[i-1].typ |