This commit is contained in:
Araq 2016-12-17 23:02:53 +01:00
commit d4c33df919

View file

@ -759,8 +759,10 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
if st.kind == tyGenericBody: st = st.lastSon if st.kind == tyGenericBody: st = st.lastSon
internalAssert st.kind in {tyPtr, tyRef} internalAssert st.kind in {tyPtr, tyRef}
internalAssert st.lastSon.sym == nil internalAssert st.lastSon.sym == nil
st.lastSon.sym = newSym(skType, getIdent(s.name.s & ":ObjectType"), let obj = newSym(skType, getIdent(s.name.s & ":ObjectType"),
getCurrOwner(), s.info) getCurrOwner(), s.info)
obj.typ = st.lastSon
st.lastSon.sym = obj
proc checkForMetaFields(n: PNode) = proc checkForMetaFields(n: PNode) =
template checkMeta(t) = template checkMeta(t) =