fixes #5161
This commit is contained in:
parent
4104ee121d
commit
020b41e294
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ proc searchForProcNew(c: PContext, scope: PScope, fn: PSym): PSym =
|
||||||
|
|
||||||
result = initIdentIter(it, scope.symbols, fn.name)
|
result = initIdentIter(it, scope.symbols, fn.name)
|
||||||
while result != nil:
|
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)
|
case equalParams(result.typ.n, fn.typ.n)
|
||||||
of paramsEqual:
|
of paramsEqual:
|
||||||
if (sfExported notin result.flags) and (sfExported in fn.flags):
|
if (sfExported notin result.flags) and (sfExported in fn.flags):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue