From 0b709fb916923b0d5e9eab06fc8766e46e63d955 Mon Sep 17 00:00:00 2001 From: cooldome Date: Tue, 12 Jun 2018 21:41:35 +0100 Subject: [PATCH] FIx test tembarrassing_generic_failure --- compiler/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ast.nim b/compiler/ast.nim index 03f02de135..014ffaf264 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1684,7 +1684,7 @@ proc isException*(t: PType): bool = assert(t != nil) 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: return true if base.len == 0: break