summary refs log blame commit diff stats
path: root/tests/rodfiles/amethods.nim
blob: 29cf757f709210a723f2977bc874957721ab6a16 (plain) (tree)
1
2
3
4
5
6
7
8

    
                                 


                                    
 
                                              




                                    
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