Fix 105, few fixes for 101 (#11148)
This commit is contained in:
parent
20e3a39d6c
commit
45759b5e90
4 changed files with 7 additions and 4 deletions
|
|
@ -123,6 +123,7 @@ proc elemType*(t: PType): PType =
|
|||
case t.kind
|
||||
of tyGenericInst, tyDistinct, tyAlias, tySink: result = elemType(lastSon(t))
|
||||
of tyArray: result = t.sons[1]
|
||||
of tyError: result = t
|
||||
else: result = t.lastSon
|
||||
assert(result != nil)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue