fixes #5129
This commit is contained in:
parent
9ac76b49c0
commit
d4c33df919
1 changed files with 3 additions and 1 deletions
|
|
@ -759,8 +759,10 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
|
|||
if st.kind == tyGenericBody: st = st.lastSon
|
||||
internalAssert st.kind in {tyPtr, tyRef}
|
||||
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)
|
||||
obj.typ = st.lastSon
|
||||
st.lastSon.sym = obj
|
||||
|
||||
proc checkForMetaFields(n: PNode) =
|
||||
template checkMeta(t) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue