summary refs log tree commit diff stats
path: root/tests/method
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-07-05 15:51:04 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-05 15:51:04 +0200
commit0926754e68861947c67986bc9c7e0a011a58267b (patch)
treebc11469a33f1aabd202e7105177553688439712a /tests/method
parent9b31f6785947974e89d46bbc0dee11f1c78754dc (diff)
downloadNim-0926754e68861947c67986bc9c7e0a011a58267b.tar.gz
make tests green again
Diffstat (limited to 'tests/method')
-rw-r--r--tests/method/tmultim4.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/method/tmultim4.nim b/tests/method/tmultim4.nim
index eabf8d126..a1d65d570 100644
--- a/tests/method/tmultim4.nim
+++ b/tests/method/tmultim4.nim
@@ -3,15 +3,15 @@ discard """
   output: "hello"
 """
 type
-  Test = object of TObject
+  Test = object of RootObj
 
-method doMethod(a: ref TObject) {.base, raises: [EIO].} =
+method doMethod(a: ref RootObj) {.base, raises: [IoError].} =
   quit "override"
 
 method doMethod(a: ref Test) =
   echo "hello"
   if a == nil:
-    raise newException(EIO, "arg")
+    raise newException(IoError, "arg")
 
 proc doProc(a: ref Test) =
   echo "hello"