diff --git a/tests/effects/teffectsmisc.nim b/tests/effects/teffectsmisc.nim index e2fd2d87db..d3978814c3 100644 --- a/tests/effects/teffectsmisc.nim +++ b/tests/effects/teffectsmisc.nim @@ -57,4 +57,8 @@ block: except IOError as e: raise - f() \ No newline at end of file + f() + +block: + static: doAssert IOError is Exception + proc r(e: ref Exception) {.raises: [IOError].} = raise (ref IOError)(e)