From 65ee80e50ca6b693eab6216383405797c748b72f Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Thu, 4 Apr 2019 09:06:12 +0200 Subject: Pure ref object; fixes #10721 (#10955) --- compiler/semstmts.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0