From 9d31dfdf1ad49473cac1f04d7777876bbafd0481 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 28 Oct 2018 14:26:18 +0100 Subject: [PATCH] fixes tnre regression --- compiler/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ast.nim b/compiler/ast.nim index 77ac5757af..5fc8e5978f 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -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