mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
FIx test tembarrassing_generic_failure
This commit is contained in:
@@ -1684,7 +1684,7 @@ proc isException*(t: PType): bool =
|
||||
assert(t != nil)
|
||||
|
||||
var base = t
|
||||
while base != nil and base.kind in {tyObject, tyRef, tyGenericInst, tyAlias}:
|
||||
while base != nil and base.kind in {tyObject, tyGenericInst, tyAlias}:
|
||||
if base.sym != nil and base.sym.magic == mException:
|
||||
return true
|
||||
if base.len == 0: break
|
||||
|
||||
Reference in New Issue
Block a user