From 833c65eb0960bab1972e64a78a6389aff6845b71 Mon Sep 17 00:00:00 2001 From: David MacIver Date: Sun, 26 Oct 2008 15:55:23 +0000 Subject: Cleaning up a lot of dead code from regular exp... Cleaning up a lot of dead code from regular expression patterns. Added a couple tests to verify correctness of cleanup. --- test/files/run/matcharraytail.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/run/matcharraytail.scala (limited to 'test/files/run/matcharraytail.scala') diff --git a/test/files/run/matcharraytail.scala b/test/files/run/matcharraytail.scala new file mode 100644 index 0000000000..cdd79acda3 --- /dev/null +++ b/test/files/run/matcharraytail.scala @@ -0,0 +1,7 @@ +object Test extends Application{ + Array("foo", "bar", "baz") match { + case x@Array("foo", bar @_*) => println(x.toString); println(bar.toString); + case Array(x, y, z) => println("shouldn't have fallen through"); + case _ => println("default case?!"); + } +} -- cgit v1.2.3