From c20d1ac1c0c40fbd380a591ea80617eea6fa56b7 Mon Sep 17 00:00:00 2001 From: cooldome Date: Tue, 26 Jun 2018 23:50:06 +0100 Subject: Fix failing test --- compiler/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/ast.nim b/compiler/ast.nim index 0e0ff77b8..a52cf2144 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1693,7 +1693,7 @@ proc isException*(t: PType): bool = assert(t != nil) var base = t - while base != nil and base.kind in {tyObject, tyGenericInst, tyAlias}: + while base != nil and base.kind in {tyRef, tyObject, tyGenericInst, tyAlias}: if base.sym != nil and base.sym.magic == mException: return true if base.len == 0: break -- cgit 1.4.1-2-gfad0