.n.isNil checks for tyTuple PTypes.
This commit is contained in:
parent
dba25d2622
commit
7527da7043
4 changed files with 5 additions and 2 deletions
|
|
@ -692,7 +692,7 @@ proc typeSectionFinalPass(c: PContext, n: PNode) =
|
|||
assignType(s.typ, t)
|
||||
s.typ.id = t.id # same id
|
||||
checkConstructedType(s.info, s.typ)
|
||||
if s.typ.kind in {tyObject, tyTuple}:
|
||||
if s.typ.kind in {tyObject, tyTuple} and not s.typ.n.isNil:
|
||||
checkForMetaFields(s.typ.n)
|
||||
let aa = a.sons[2]
|
||||
if aa.kind in {nkRefTy, nkPtrTy} and aa.len == 1 and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue