make tests green again
This commit is contained in:
parent
0926754e68
commit
ae82406c8b
13 changed files with 18 additions and 17 deletions
|
|
@ -9,7 +9,7 @@ type
|
|||
a, b, c: string
|
||||
fn: proc (): int {.tags: [].}
|
||||
|
||||
EIO2 = ref object of EIO
|
||||
|
||||
|
||||
proc raiser(): int {.tags: [TObj, WriteIoEffect].} =
|
||||
writeLine stdout, "arg"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ type
|
|||
a, b, c: string
|
||||
fn: proc (): int {.tags: [ReadIOEffect].}
|
||||
|
||||
EIO2 = ref object of EIO
|
||||
|
||||
|
||||
proc q() {.tags: [IoEffect].} =
|
||||
discard
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ proc noRaise(x: proc()) {.raises: [].} =
|
|||
# unknown call that might raise anything, but valid:
|
||||
x()
|
||||
|
||||
proc doRaise() {.raises: [EIO].} =
|
||||
raise newException(EIO, "IO")
|
||||
proc doRaise() {.raises: [IoError].} =
|
||||
raise newException(IoError, "IO")
|
||||
|
||||
proc use*() =
|
||||
noRaise(doRaise)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue