blob: b178c256b3c4368fd1c7a25a765f002cfdb4e2c3 (
plain) (
tree)
|
|
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)
}
|