summary refs log tree commit diff stats
path: root/tests/rodfiles/amethods.nim
blob: 29cf757f709210a723f2977bc874957721ab6a16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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