fixes #5383
This commit is contained in:
parent
95abf30fae
commit
97e26967f1
11 changed files with 60 additions and 17 deletions
|
|
@ -1541,8 +1541,7 @@ proc skipGenericOwner*(s: PSym): PSym =
|
|||
## Generic instantiations are owned by their originating generic
|
||||
## symbol. This proc skips such owners and goes straight to the owner
|
||||
## of the generic itself (the module or the enclosing proc).
|
||||
result = if s.kind in skProcKinds and {sfGenSym, sfFromGeneric} * s.flags ==
|
||||
{sfFromGeneric}:
|
||||
result = if s.kind in skProcKinds and sfFromGeneric in s.flags:
|
||||
s.owner.owner
|
||||
else:
|
||||
s.owner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue