fixes #2590; methods now require a .base annotation
This commit is contained in:
parent
d2e4d6ad82
commit
dc047931bb
17 changed files with 69 additions and 32 deletions
|
|
@ -5,7 +5,7 @@ discard """
|
|||
type
|
||||
Test = object of TObject
|
||||
|
||||
method doMethod(a: ref TObject) {.raises: [EIO].} =
|
||||
method doMethod(a: ref TObject) {.base, raises: [EIO].} =
|
||||
quit "override"
|
||||
|
||||
method doMethod(a: ref Test) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue