This commit is contained in:
Andrey R (cooldome)
2020-11-24 11:58:02 +00:00
parent f8b9d8c190
commit 2bab2a2cd8

View File

@@ -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