fix #16110
This commit is contained in:
parent
f8b9d8c190
commit
2bab2a2cd8
1 changed files with 2 additions and 1 deletions
|
|
@ -1278,7 +1278,8 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
|
||||||
incl st.flags, tfRefsAnonObj
|
incl st.flags, tfRefsAnonObj
|
||||||
let obj = newSym(skType, getIdent(c.cache, s.name.s & ":ObjectType"),
|
let obj = newSym(skType, getIdent(c.cache, s.name.s & ":ObjectType"),
|
||||||
nextId c.idgen, getCurrOwner(c), s.info)
|
nextId c.idgen, getCurrOwner(c), s.info)
|
||||||
obj.ast = a
|
obj.ast = a.copyTree
|
||||||
|
obj.ast[0] = newSymNode(obj)
|
||||||
if sfPure in s.flags:
|
if sfPure in s.flags:
|
||||||
obj.flags.incl sfPure
|
obj.flags.incl sfPure
|
||||||
obj.typ = st.lastSon
|
obj.typ = st.lastSon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue