diff options
Diffstat (limited to 'tests/effects/teffects2.nim')
-rw-r--r-- | tests/effects/teffects2.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/effects/teffects2.nim b/tests/effects/teffects2.nim index 0fa789869..777a4cebc 100644 --- a/tests/effects/teffects2.nim +++ b/tests/effects/teffects2.nim @@ -1,10 +1,10 @@ discard """ - line: 19 errormsg: "can raise an unlisted exception: ref IOError" + line: 19 """ - +{.push warningAsError[Effect]: on.} type - TObj = object {.pure, inheritable.} + TObj {.pure, inheritable.} = object TObjB = object of TObj a, b, c: string @@ -17,4 +17,4 @@ proc lier(): int {.raises: [IOError].} = proc forw: int = raise newException(IOError, "arg") - +{.pop.} |