aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/partialApplications.scala
blob: c1df1dee2035e56d118f7428e74f90d4b6444b13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object Test {

  type Histogram[X] = Map[X, Int]

  type StringlyHistogram[X >: String] = Histogram[X]

  val xs: Histogram[String] = Map[String, Int]()

  val ys: StringlyHistogram[String] = xs

  val zs: StringlyHistogram = xs

}