summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-04-04 09:06:12 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-04-04 09:06:12 +0200
commit65ee80e50ca6b693eab6216383405797c748b72f (patch)
treeecf46bd2149afd24416e50e4f4124a707eb64b76 /compiler
parente5cdd7f773d0d32f09676fb81f053ad76a76ec1d (diff)
downloadNim-65ee80e50ca6b693eab6216383405797c748b72f.tar.gz
Pure ref object; fixes #10721 (#10955)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semstmts.nim2
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