patterns for 'importcpp' (still undocumented)
This commit is contained in:
parent
8889fa9117
commit
33c587d06b
2 changed files with 92 additions and 28 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue