Revert "fix #16110"

This reverts commit 2bab2a2cd8.
This commit is contained in:
Andrey R (cooldome) 2020-11-24 12:10:43 +00:00
commit baae8ef38f

View file

@ -1278,8 +1278,7 @@ 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.copyTree obj.ast = a
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