fixes #2057
This commit is contained in:
parent
61e5f0dc51
commit
b5f1957588
5 changed files with 48 additions and 20 deletions
|
|
@ -230,7 +230,7 @@ proc getEbase(): PType =
|
|||
|
||||
proc excType(n: PNode): PType =
|
||||
# reraise is like raising E_Base:
|
||||
let t = if n.kind == nkEmpty: getEbase() else: n.typ
|
||||
let t = if n.kind == nkEmpty or n.typ.isNil: getEbase() else: n.typ
|
||||
result = skipTypes(t, skipPtrs)
|
||||
|
||||
proc createRaise(n: PNode): PNode =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue