summaryrefslogblamecommitdiff
path: root/test/files/run/infix.scala
blob: 9df07ac3170d3ee584bd2fc0b72b04434926fc58 (plain) (tree)
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 Application {
  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")
  }
}