This commit is contained in:
cooldome 2020-11-24 14:49:14 +00:00 • committed by GitHub
commit 1d14b2c9e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

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