IC: added basic test case for methods (#17679)
* IC: added basic test case for methods * IC: better methods test
This commit is contained in:
parent
e4b64eee89
commit
13b958eb45
4 changed files with 64 additions and 8 deletions
7
tests/ic/mbaseobj.nim
Normal file
7
tests/ic/mbaseobj.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
type
|
||||
Base* = ref object of RootObj
|
||||
s*: string
|
||||
|
||||
method m*(b: Base) {.base.} =
|
||||
echo "Base ", b.s
|
||||
Loading…
Add table
Add a link
Reference in a new issue