From f6c69106d3baa59479e839727acc03ae4035519d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 28 Jan 2010 05:46:06 +0000 Subject: One of those "$.05 for the bolt, $50,000 for kn... One of those "$.05 for the bolt, $50,000 for knowing where to put it" commits. Closes #425, #816, #2310, #2691. All credit for this patch goes to me for having the genius to know when new eyes were needed (although if you're feeling generous some could also go to walter korman for the actual debugging and code writing part.) --- test/files/pos/t2691.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/pos/t2691.scala (limited to 'test/files/pos/t2691.scala') diff --git a/test/files/pos/t2691.scala b/test/files/pos/t2691.scala new file mode 100644 index 0000000000..ba2e52f1fe --- /dev/null +++ b/test/files/pos/t2691.scala @@ -0,0 +1,9 @@ +object Breakdown { + def unapplySeq(x: Int): Some[List[String]] = Some(List("", "there")) +} +object Test { + 42 match { + case Breakdown("") => // needed to trigger bug + case Breakdown("", who) => println ("hello " + who) + } +} \ No newline at end of file -- cgit v1.2.3