fixes tnre regression

This commit is contained in:
Araq
2018-10-28 14:26:18 +01:00
parent 80b78b50d0
commit 9d31dfdf1a

View File

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