summary refs log blame commit diff stats
path: root/tests/objects/toop.nim
blob: 4bd3998f3f0e4e4c6a5330e0623f49c446677eb1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
           
             
   

    
                        
             
 

                   
 

                    
 

                            




         
discard """
  output: "b"
"""

type
  TA = object of RootObj
    x, y: int

  TB = object of TA
    z: int

  TC = object of TB
    whatever: string

proc p(a: var TA) = echo "a"
proc p(b: var TB) = echo "b"

var c: TC

p(c)