From a961d3dcd6f93ee006cff1d386052bf62326739a Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 3 Jan 2007 15:56:13 +0000 Subject: 1. --- test/files/run/infix.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 test/files/run/infix.scala (limited to 'test/files/run/infix.scala') diff --git a/test/files/run/infix.scala b/test/files/run/infix.scala new file mode 100755 index 0000000000..9df07ac317 --- /dev/null +++ b/test/files/run/infix.scala @@ -0,0 +1,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") + } +} + -- cgit v1.2.3