Revert "fix #16110"

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

View File

@@ -1278,8 +1278,7 @@ 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.copyTree
obj.ast[0] = newSymNode(obj)
obj.ast = a
if sfPure in s.flags:
obj.flags.incl sfPure
obj.typ = st.lastSon