backport sane ast.isException implementation

This commit is contained in:
Araq
2019-04-30 09:30:35 +02:00
parent dbca89730b
commit d92f322faa

View File

@@ -1731,7 +1731,7 @@ proc isException*(t: PType): bool =
return false
var base = t
while base != nil:
while base != nil and base.kind in {tyRef, tyObject, tyGenericInst}:
if base.sym != nil and base.sym.magic == mException:
return true
base = base.lastSon