summaryrefslogtreecommitdiff
path: root/test/files/run/castsingleton.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/castsingleton.scala')
-rw-r--r--test/files/run/castsingleton.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/castsingleton.scala b/test/files/run/castsingleton.scala
new file mode 100644
index 0000000000..f907467741
--- /dev/null
+++ b/test/files/run/castsingleton.scala
@@ -0,0 +1,11 @@
+object Test extends Application {
+ case class L();
+ object N extends L();
+
+ def empty(xs : L) : Unit = xs match {
+ case x@N => println(x); println(x);
+ case x => println(x); println(x);
+ }
+
+ empty(L())
+}