make tests green again
This commit is contained in:
parent
9b31f67859
commit
0926754e68
31 changed files with 61 additions and 55 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue