From 136f08e7db582060142c9ac796ba0b71df74139f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 20 May 2010 16:30:59 +0000 Subject: Misoptimization for list extractors caused non-... Misoptimization for list extractors caused non-sequences to incorrectly match. Closes #3050, #2800. No review. --- test/files/run/bug3050.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/run/bug3050.scala (limited to 'test/files/run') diff --git a/test/files/run/bug3050.scala b/test/files/run/bug3050.scala new file mode 100644 index 0000000000..aaec99ec14 --- /dev/null +++ b/test/files/run/bug3050.scala @@ -0,0 +1,9 @@ +object Test { + def main(args: Array[String]): Unit = { + val x = + try { ("": Any) match { case List(_*) => true } } + catch { case _ => false } + + assert(x == false) + } +} -- cgit v1.2.3