summary refs log tree commit diff stats
path: root/compiler/procfind.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/procfind.nim')
-rw-r--r--compiler/procfind.nim2
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):