summary refs log blame commit diff stats
path: root/tests/generics/tgeneric_inheritance.nim
blob: 66b5a6c69139e98a83c4cd32c87898507f690f13 (plain) (tree)


















                             
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