diff options
author | Andrey R (cooldome) <ariabushenko@gmail.com> | 2020-11-24 12:10:43 +0000 |
---|---|---|
committer | Andrey R (cooldome) <ariabushenko@gmail.com> | 2020-11-24 12:10:43 +0000 |
commit | baae8ef38fc932060f225c96146f4579135e1152 (patch) | |
tree | f97bcbfa70eb953dda64ee490a720e752ddad300 | |
parent | 2bab2a2cd8476423414819db3ad79309f6033e13 (diff) | |
download | Nim-baae8ef38fc932060f225c96146f4579135e1152.tar.gz |
Revert "fix #16110"
This reverts commit 2bab2a2cd8476423414819db3ad79309f6033e13.
-rw-r--r-- | compiler/semstmts.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 713867b76..cd7428b62 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -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 |