Skip to content

Commit

Permalink
Revert "fix nim-lang#16110"
Browse files Browse the repository at this point in the history
This reverts commit 2bab2a2.
  • Loading branch information
cooldome authored and ardek66 committed Mar 26, 2021
1 parent 7351f37 commit f8a5650
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 f8a5650

Please sign in to comment.