diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-04-04 09:06:12 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-04-04 09:06:12 +0200 |
commit | 65ee80e50ca6b693eab6216383405797c748b72f (patch) | |
tree | ecf46bd2149afd24416e50e4f4124a707eb64b76 /compiler | |
parent | e5cdd7f773d0d32f09676fb81f053ad76a76ec1d (diff) | |
download | Nim-65ee80e50ca6b693eab6216383405797c748b72f.tar.gz |
Pure ref object; fixes #10721 (#10955)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index bc403f1ea..a3df95190 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1203,6 +1203,8 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) = incl st.flags, tfRefsAnonObj let obj = newSym(skType, getIdent(c.cache, s.name.s & ":ObjectType"), getCurrOwner(c), s.info) + if sfPure in s.flags: + obj.flags.incl sfPure obj.typ = st.lastSon st.lastSon.sym = obj |