summary refs log tree commit diff stats
path: root/tests/generics/tcan_inherit_generic.nim
blob: 331fcfd5c3fbc1a3d9e480816ee3709e7f0fbf75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
##
## can_inherit_generic Nim Module
##
## Created by Eric Doughty-Papassideris on 2011-02-16.

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