fixes #4177
This commit is contained in:
parent
ab08ee1ce6
commit
e65c89ee28
2 changed files with 19 additions and 2 deletions
|
|
@ -43,9 +43,11 @@ proc rawHandleSelf(c: PContext; owner: PSym) =
|
|||
if arg.name.id == c.selfName.id:
|
||||
c.p.selfSym = arg
|
||||
arg.flags.incl sfIsSelf
|
||||
let t = c.p.selfSym.typ.skipTypes(abstractPtrs)
|
||||
if t.kind == tyObject:
|
||||
var t = c.p.selfSym.typ.skipTypes(abstractPtrs)
|
||||
while t.kind == tyObject:
|
||||
addObjFieldsToLocalScope(c, t.n)
|
||||
if t.sons[0] == nil: break
|
||||
t = t.sons[0].skipTypes(abstractPtrs)
|
||||
|
||||
proc pushProcCon*(c: PContext; owner: PSym) =
|
||||
rawPushProcCon(c, owner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue