summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-28 14:26:18 +0100
committerAraq <rumpf_a@web.de>2018-10-29 10:06:36 +0100
commit9d31dfdf1ad49473cac1f04d7777876bbafd0481 (patch)
tree8a944166bc6ecce45e72edd8f37f6ef1d8706953 /compiler/ast.nim
parent80b78b50d0e65b428efb62d70d5798b8f82ca292 (diff)
downloadNim-9d31dfdf1ad49473cac1f04d7777876bbafd0481.tar.gz
fixes tnre regression
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 77ac5757a..5fc8e5978 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