summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-27 13:21:36 +0000
committerPaul Phillips <paulp@improving.org>2009-08-27 13:21:36 +0000
commit2c39b8b0839a5dfd48dfd073944f7b176cc63f4b (patch)
tree98313bcb7ad6f6f0ffffa31bfccc007005bd2362 /test/files
parentde8a10cdd1badae2a73c8506a59eebaa1c323312 (diff)
downloadscala-2c39b8b0839a5dfd48dfd073944f7b176cc63f4b.tar.gz
scala-2c39b8b0839a5dfd48dfd073944f7b176cc63f4b.tar.bz2
scala-2c39b8b0839a5dfd48dfd073944f7b176cc63f4b.zip
Fix and test case for #2187 and its duplicate #...
Fix and test case for #2187 and its duplicate #2192.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/bug2187.scala7
1 files changed, 7 insertions, 0 deletions
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