summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorcooldome <ariabushenko@bk.ru>2018-06-26 23:50:06 +0100
committercooldome <ariabushenko@bk.ru>2018-06-26 23:50:06 +0100
commitc20d1ac1c0c40fbd380a591ea80617eea6fa56b7 (patch)
treeffed77f018d0ba5e8610dd83d6f4666b791f56ca /compiler/ast.nim
parent34170db96308c367357ece15404815727bce223a (diff)
downloadNim-c20d1ac1c0c40fbd380a591ea80617eea6fa56b7.tar.gz
Fix failing test
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim2
1 files changed, 1 insertions, 1 deletions
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