From 2c39b8b0839a5dfd48dfd073944f7b176cc63f4b Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 27 Aug 2009 13:21:36 +0000 Subject: Fix and test case for #2187 and its duplicate #... Fix and test case for #2187 and its duplicate #2192. --- test/files/pos/bug2187.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/pos/bug2187.scala (limited to 'test/files') diff --git a/test/files/pos/bug2187.scala b/test/files/pos/bug2187.scala new file mode 100644 index 0000000000..087df13ec6 --- /dev/null +++ b/test/files/pos/bug2187.scala @@ -0,0 +1,7 @@ +// bug #2187 +object Test extends Application { + def foo(xs:List[String]) = xs match { + case Seq(x) => x + case Seq(x,y) => "" + } +} \ No newline at end of file -- cgit v1.2.3