.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

@ -341,6 +341,8 @@ proc skipIntLiteralParams*(t: PType) =
proc propagateFieldFlags(t: PType, n: PNode) =
# This is meant for objects and tuples
# The type must be fully instantiated!
if n.isNil:
return
internalAssert n.kind != nkRecWhen
case n.kind
of nkSym: