diff options
author | Araq <rumpf_a@web.de> | 2016-12-30 01:43:26 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-30 01:43:26 +0100 |
commit | 020b41e29495838f962dfb7f58a15a55e8b8b562 (patch) | |
tree | 418df77d022ca84d74420bd5cc09e4b01128e19c | |
parent | 4104ee121dc08b50b90bf9ce3b62740b60244673 (diff) | |
download | Nim-020b41e29495838f962dfb7f58a15a55e8b8b562.tar.gz |
fixes #5161
-rw-r--r-- | compiler/procfind.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/procfind.nim b/compiler/procfind.nim index 523ea2e2f..137765ddb 100644 --- a/compiler/procfind.nim +++ b/compiler/procfind.nim @@ -71,7 +71,7 @@ proc searchForProcNew(c: PContext, scope: PScope, fn: PSym): PSym = result = initIdentIter(it, scope.symbols, fn.name) while result != nil: - if result.kind in skProcKinds and sameType(result.typ, fn.typ, flags): + if result.kind == fn.kind and sameType(result.typ, fn.typ, flags): case equalParams(result.typ.n, fn.typ.n) of paramsEqual: if (sfExported notin result.flags) and (sfExported in fn.flags): |