diff options
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 |