Files
Nim/tests/rodfiles/amethods.nim
2016-08-27 13:26:16 +02:00

14 lines
211 B
Nim

type
TBaseClass* = object of RootObj
proc newBaseClass*: ref TBaseClass =
new result
method echoType*(x: ref TBaseClass) {.base.} =
echo "base class"
proc echoAlias*(x: ref TBaseClass) =
echoType x