ARC: fixes cycle detection and move the .cursor attribute into closures (#12872)
This commit is contained in:
parent
e61d702206
commit
3524944e21
3 changed files with 57 additions and 1 deletions
|
|
@ -215,6 +215,7 @@ proc addField*(obj: PType; s: PSym; cache: IdentCache) =
|
|||
assert t.kind != tyTyped
|
||||
propagateToOwner(obj, t)
|
||||
field.position = obj.n.len
|
||||
field.flags = s.flags * {sfCursor}
|
||||
obj.n.add newSymNode(field)
|
||||
fieldCheck()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue