Fix failing test
This commit is contained in:
parent
34170db963
commit
c20d1ac1c0
1 changed files with 1 additions and 1 deletions
|
|
@ -1693,7 +1693,7 @@ proc isException*(t: PType): bool =
|
||||||
assert(t != nil)
|
assert(t != nil)
|
||||||
|
|
||||||
var base = t
|
var base = t
|
||||||
while base != nil and base.kind in {tyObject, tyGenericInst, tyAlias}:
|
while base != nil and base.kind in {tyRef, tyObject, tyGenericInst, tyAlias}:
|
||||||
if base.sym != nil and base.sym.magic == mException:
|
if base.sym != nil and base.sym.magic == mException:
|
||||||
return true
|
return true
|
||||||
if base.len == 0: break
|
if base.len == 0: break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue