summaryrefslogtreecommitdiff
path: root/test/files/run/infix.scala
blob: 1d39003644fee3839e3024a8a319e3b59318013d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
case class op(x: op, y: Int, z: Int) {
  def op(y: Int, z: Int) = new op(this, y, z)
}

object Test extends App {
  val xs = new op(null, 0, 0) op (1, 1) op (2, 2)
  Console.println(xs)
  xs match {
    case null op (0, 0) op (1, 1) op (2, 2) => Console.println("OK")
    case _ =>
  }
}