make tests green again

This commit is contained in:
Andreas Rumpf 2018-07-05 19:14:18 +02:00
commit ae82406c8b
13 changed files with 18 additions and 17 deletions

View file

@ -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"

View file

@ -9,7 +9,7 @@ type
a, b, c: string
fn: proc (): int {.tags: [ReadIOEffect].}
EIO2 = ref object of EIO
proc q() {.tags: [IoEffect].} =
discard

View file

@ -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)