summary refs log blame commit diff stats
path: root/tests/accept/compile/tcan_inherit_generic.nim
blob: 76d9fab1f994c7e3eea75034cc0641d3a631596e (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                      

           

                              




                   
##
## can_inherit_generic Nimrod Module
##
## Created by Eric Doughty-Papassideris on 2011-02-16.
## Copyright (c) 2011 FWA. All rights reserved.

type
  TGen[T] = object
    x, y: T
  
  TSpef[T] = object of TGen[T]


var s: TSpef[float]
s.x = 0.4
s.y = 0.6