summary refs log tree commit diff stats
path: root/tests/generics/t21742.nim
blob: c49c8ee97c7c6aa1fdc65996b2da1462f9b053e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
type
  Foo[T] = object
    x:T
  Bar[T,R] = Foo[T]
  Baz = Bar[int,float]

proc qux[T,R](x: Bar[T,R]) = discard

var b:Baz
b.qux()