Skip to content

Commit

Permalink
fixes #5161
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Dec 30, 2016
1 parent 4104ee1 commit 020b41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/procfind.nim
Expand Up @@ -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):
Expand Down

0 comments on commit 020b41e

Please sign in to comment.