summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorcooldome <ariabushenko@bk.ru>2018-06-12 21:41:35 +0100
committercooldome <ariabushenko@bk.ru>2018-06-12 21:41:35 +0100
commit0b709fb916923b0d5e9eab06fc8766e46e63d955 (patch)
tree0c106fe4f12eec23bfc3ed0001e83bb4b60392fe /compiler/ast.nim
parenta274d77b55ad69d79c1339d5c43f17ce6bec725b (diff)
downloadNim-0b709fb916923b0d5e9eab06fc8766e46e63d955.tar.gz
FIx test tembarrassing_generic_failure
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 03f02de13..014ffaf26 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