aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2208_pos.scala
blob: 9f8f96c7d0511e5346f8923d7d933b75e915204c (plain) (blame)
1
2
3
4
5
6
7
8
object Test  {
    class A

    class B[X]
    type Alias[X <: A] = B[X]

    val foo: B[A] = new Alias[A] // check that type aliases can be instantiated
}