mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
fix #16110
This commit is contained in:
@@ -1278,7 +1278,8 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
|
||||
incl st.flags, tfRefsAnonObj
|
||||
let obj = newSym(skType, getIdent(c.cache, s.name.s & ":ObjectType"),
|
||||
nextId c.idgen, getCurrOwner(c), s.info)
|
||||
obj.ast = a
|
||||
obj.ast = a.copyTree
|
||||
obj.ast[0] = newSymNode(obj)
|
||||
if sfPure in s.flags:
|
||||
obj.flags.incl sfPure
|
||||
obj.typ = st.lastSon
|
||||
|
||||
Reference in New Issue
Block a user