exception tracking should work

This commit is contained in:
Araq 2012-11-04 18:09:15 +01:00
commit 6dd2c2d767
7 changed files with 105 additions and 18 deletions

View file

@ -0,0 +1,20 @@
discard """
line: 16
errormsg: "instantiation from here"
"""
type
TObj = object {.pure, inheritable.}
TObjB = object of TObj
a, b, c: string
EIO2 = ref object of EIO
proc forw: int {. .}
proc lier(): int {.raises: [EIO2].} =
writeln stdout, "arg"
proc forw: int =
raise newException(EIO, "arg")