Files
Nim/tests/generics/tgeneric_inheritance.nim
2015-01-23 00:36:56 +01:00

20 lines
207 B
Nim

discard """
output: "0.0"
"""
# bug #1919
type
Base[M] = object of RootObj
a : M
Sub1[M] = object of Base[M]
b : int
Sub2[M] = object of Sub1[M]
c : int
var x: Sub2[float]
echo x.a