summary refs log tree commit diff stats
path: root/tests/rodfiles/amethods.nim
blob: c51d27d249e9f7826a88271e2ce132acd9ec4755 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
type
  TBaseClass* = object of TObject

proc newBaseClass*: ref TBaseClass =
  new result
  
method echoType*(x: ref TBaseClass) =
  echo "base class"

proc echoAlias*(x: ref TBaseClass) =
  echoType x