more tests green
This commit is contained in:
parent
93eb9c456d
commit
d7d059a686
16 changed files with 79 additions and 79 deletions
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
line: 2136
|
||||
file: "system.nim"
|
||||
errormsg: "can raise an unlisted exception: ref EIO"
|
||||
errormsg: "can raise an unlisted exception: ref IOError"
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
@ -9,13 +9,13 @@ type
|
|||
TObjB = object of TObj
|
||||
a, b, c: string
|
||||
|
||||
EIO2 = ref object of EIO
|
||||
IO2Error = ref object of IOError
|
||||
|
||||
proc forw: int {. .}
|
||||
|
||||
proc lier(): int {.raises: [EIO2].} =
|
||||
proc lier(): int {.raises: [IO2Error].} =
|
||||
writeln stdout, "arg"
|
||||
|
||||
proc forw: int =
|
||||
raise newException(EIO, "arg")
|
||||
raise newException(IOError, "arg")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 19
|
||||
errormsg: "can raise an unlisted exception: ref EIO"
|
||||
errormsg: "can raise an unlisted exception: ref IOError"
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
@ -8,13 +8,13 @@ type
|
|||
TObjB = object of TObj
|
||||
a, b, c: string
|
||||
|
||||
EIO2 = ref object of EIO
|
||||
EIO2 = ref object of IOError
|
||||
|
||||
proc forw: int {.raises: [].}
|
||||
|
||||
proc lier(): int {.raises: [EIO].} =
|
||||
proc lier(): int {.raises: [IOError].} =
|
||||
writeln stdout, "arg"
|
||||
|
||||
proc forw: int =
|
||||
raise newException(EIO, "arg")
|
||||
raise newException(IOError, "arg")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue