This commit is contained in:
Araq
2016-12-30 01:43:26 +01:00
parent 4104ee121d
commit 020b41e294

View File

@@ -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):