blob: a867d03ce8ddbb3fc4a7e242e87476596e20e97a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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")
}
}
|