From 26bca73b09d29a7978acdda36d2f85478343f9f4 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 5 Jul 2009 23:22:43 +0000 Subject: Implemented proposed strategy for #1503 and mov... Implemented proposed strategy for #1503 and moved test case out of pending (and fixed it so it didn't throw a match error.) --- test/files/run/castsingleton.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/run/castsingleton.scala (limited to 'test/files/run/castsingleton.scala') 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()) +} -- cgit v1.2.3