summary refs log blame commit diff stats
path: root/tests/ccgbugs/mymodule.nim
blob: 8c78cdf9bb9510ce5fa9a76f0c333b79510714eb (plain) (tree)
1
2
3
4
5
6


                           


                                   







                                              
type
  MyRefObject* = ref object
    s: string
  
  BaseObj* = ref object of RootObj
  ChildObj* = ref object of BaseObj

proc newMyRefObject*(s: string): MyRefObject =
  new(result)
  result.s = s
  
proc `$`*(o: MyRefObject): string =
  o.s