.n.isNil checks for tyTuple PTypes.

This commit is contained in:
Max Zerzouri 2015-03-07 10:43:47 +13:00
commit 7527da7043
4 changed files with 5 additions and 2 deletions

View file

@ -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