Skip to content

Commit

Permalink
Revert "fix #16110"
Browse files Browse the repository at this point in the history
This reverts commit 2bab2a2.
  • Loading branch information
cooldome committed Nov 24, 2020
1 parent 2bab2a2 commit baae8ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/semstmts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baae8ef

Please sign in to comment.