FIx test tembarrassing_generic_failure

This commit is contained in:
cooldome 2018-06-12 21:41:35 +01:00
commit 0b709fb916

View file

@ -1684,7 +1684,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, tyRef, tyGenericInst, tyAlias}: while base != nil and base.kind in {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