summary refs log tree commit diff stats
path: root/tests/generics/tcan_inherit_generic.nim
blob: a6f4d946bf67409d3ed8eb96c8371e47a3656fee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##
## 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 of TObject
    x, y: T
  
  TSpef[T] = object of TGen[T]


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