check the owners of generic instantiations properly and fix tinvalidclosure
This commit is contained in:
parent
b01d9b6181
commit
4980ef85e2
2 changed files with 12 additions and 3 deletions
|
|
@ -219,8 +219,8 @@ proc getHiddenParam(routine: PSym): PSym =
|
|||
result = hidden.sym
|
||||
|
||||
proc isInnerProc(s, outerProc: PSym): bool {.inline.} =
|
||||
result = s.kind in {skProc, skMethod, skConverter} and
|
||||
s.owner == outerProc
|
||||
result = s.kind in {skProc, skMethod, skConverter} and
|
||||
s.skipGenericOwner == outerProc
|
||||
#s.typ.callConv == ccClosure
|
||||
|
||||
proc addClosureParam(i: PInnerContext, e: PEnv) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue