make tests green again

This commit is contained in:
Andreas Rumpf 2018-07-05 15:51:04 +02:00
commit 0926754e68
31 changed files with 61 additions and 55 deletions

View file

@ -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"