patterns for 'importcpp' (still undocumented)

This commit is contained in:
Araq 2015-01-14 13:57:59 +01:00
commit 33c587d06b
2 changed files with 92 additions and 28 deletions

View file

@ -141,7 +141,7 @@ proc elemType*(t: PType): PType =
case t.kind
of tyGenericInst, tyDistinct: result = elemType(lastSon(t))
of tyArray, tyArrayConstr: result = t.sons[1]
else: result = t.sons[0]
else: result = t.lastSon
assert(result != nil)
proc skipGeneric(t: PType): PType =