summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t0883.check2
-rwxr-xr-xtest/files/run/t0883.scala13
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t0883.check b/test/files/run/t0883.check
new file mode 100644
index 0000000000..2c94e48371
--- /dev/null
+++ b/test/files/run/t0883.check
@@ -0,0 +1,2 @@
+OK
+OK
diff --git a/test/files/run/t0883.scala b/test/files/run/t0883.scala
new file mode 100755
index 0000000000..5cd4418f5b
--- /dev/null
+++ b/test/files/run/t0883.scala
@@ -0,0 +1,13 @@
+case class Foo(name: String)
+case object Bar extends Foo("Bar")
+case class Baz extends Foo("Baz")
+object Test extends Application {
+ Foo("Bar") match {
+ case Bar => println("What?")
+ case _ => println("OK")
+ }
+ Foo("Baz") match {
+ case Baz() => println("What?")
+ case _ => println("OK")
+ }
+}