aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/i1891.scala
blob: b178c256b3c4368fd1c7a25a765f002cfdb4e2c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                        
object Test {
  class CC2[A, B](a: A, b: B)

  type T2[A, B] = CC2[A, B]

  class ArrowAssoc[A](val self: A) {
    @inline def f[B](y: B): CC2[A, B] = new CC2(self, y)
  }

  def foo = (new ArrowAssoc(1)).f(2)
}