aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1181b.scala
blob: 7694aed0b770d0430e8355d7a8148877a0302b11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class Foo[A]

object Test {
  def foo[M[_,_]](x: M[Int,Int]) = x

  type Alias[X,Y] = Foo[X]
  val x: Alias[Int,Int] = new Foo[Int]

  foo[Alias](x) // ok
  foo(x)
}