diff --git a/test/pending/run/castsingleton.check b/test/pending/run/castsingleton.check new file mode 100644 index 000000000..49742281f --- /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 000000000..59c912e09 --- /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()) +}