diff options
author | Araq <rumpf_a@web.de> | 2012-11-04 18:09:15 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-04 18:09:15 +0100 |
commit | 6dd2c2d7670b11aa2155f41e1309dad011456140 (patch) | |
tree | 341a07cc2b200cac0e241a84634485c0354ae6a4 /tests/run | |
parent | 9fea5b8f69758e9cb1cd2043d55fae66f3987df7 (diff) | |
download | Nim-6dd2c2d7670b11aa2155f41e1309dad011456140.tar.gz |
exception tracking should work
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" |