.n.isNil checks for tyTuple PTypes.
This commit is contained in:
parent
dba25d2622
commit
7527da7043
4 changed files with 5 additions and 2 deletions
|
|
@ -164,6 +164,7 @@ proc packObject(x: PNode, typ: PType, res: pointer) =
|
|||
let field = getField(typ.n, i)
|
||||
pack(it, field.typ, res +! field.offset)
|
||||
else:
|
||||
# XXX: todo
|
||||
globalError(x.info, "cannot pack unnamed tuple")
|
||||
|
||||
const maxPackDepth = 20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue