summary refs log tree commit diff stats
path: root/tests/generics/tgeneric_inheritance.nim
blob: 43222879797baf39e46d518bb2a947638102ff2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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