summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/pending/run/castsingleton.check2
-rw-r--r--test/pending/run/castsingleton.scala10
2 files changed, 12 insertions, 0 deletions
diff --git a/test/pending/run/castsingleton.check b/test/pending/run/castsingleton.check
new file mode 100644
index 0000000000..49742281f0
--- /dev/null
+++ b/test/pending/run/castsingleton.check
@@ -0,0 +1,2 @@
+L()
+L()
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())
+}