Files
Nim/tests/method/mmultim3.nim

13 lines
167 B
Nim

type
TObj* {.inheritable.} = object
var myObj* : ref TObj
method test123(a : ref TObj) {.base.} =
echo("Hi base!")
proc testMyObj*() =
test123(myObj)