blob: 6ca24d53ef9d310951905112e1798f1669e793d2 (
plain) (
tree)
|
|
discard """
errormsg: "can raise an unlisted exception: ref IOError"
file: "teffects1.nim"
line: 17
"""
type
TObj {.pure, inheritable.} = object
TObjB = object of TObj
a, b, c: string
IO2Error = ref object of IOError
proc forw: int {. .}
proc lier(): int {.raises: [IO2Error].} =
writeLine stdout, "arg"
proc forw: int =
raise newException(IOError, "arg")
|