summaryrefslogtreecommitdiff
path: root/test/pending/run/castsingleton.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/castsingleton.scala')
-rw-r--r--test/pending/run/castsingleton.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pending/run/castsingleton.scala b/test/pending/run/castsingleton.scala
new file mode 100644
index 0000000000..171b380dc9
--- /dev/null
+++ b/test/pending/run/castsingleton.scala
@@ -0,0 +1,10 @@
+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);
+ }
+
+ empty(L())
+}