diff options
Diffstat (limited to 'tests/run')
-rwxr-xr-x | tests/run/tmultim4.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run/tmultim4.nim b/tests/run/tmultim4.nim index 6bb7970dd..d824086b2 100755 --- a/tests/run/tmultim4.nim +++ b/tests/run/tmultim4.nim @@ -5,11 +5,13 @@ discard """ type Test = object of TObject -method doMethod(a: ref TObject) = +method doMethod(a: ref TObject) {.raises: [EIO].} = quit "override" method doMethod(a: ref Test) = echo "hello" + if a == nil: + raise newException(EIO, "arg") proc doProc(a: ref Test) = echo "hello" |