summaryrefslogtreecommitdiff
path: root/test/files/run/infix.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-01-03 15:56:13 +0000
committerMartin Odersky <odersky@gmail.com>2007-01-03 15:56:13 +0000
commita961d3dcd6f93ee006cff1d386052bf62326739a (patch)
tree5af3312932236340708522dfd078f32beed20519 /test/files/run/infix.scala
parent02a45e20bb6f68808708dca377bc72ccaf5bba3d (diff)
downloadscala-a961d3dcd6f93ee006cff1d386052bf62326739a.tar.gz
scala-a961d3dcd6f93ee006cff1d386052bf62326739a.tar.bz2
scala-a961d3dcd6f93ee006cff1d386052bf62326739a.zip
1.
Diffstat (limited to 'test/files/run/infix.scala')
-rwxr-xr-xtest/files/run/infix.scala12
1 files changed, 12 insertions, 0 deletions
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")
+ }
+}
+