exception tracking should work
This commit is contained in:
parent
9fea5b8f69
commit
6dd2c2d767
7 changed files with 105 additions and 18 deletions
20
tests/reject/teffects1.nim
Normal file
20
tests/reject/teffects1.nim
Normal 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")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue