summaryrefslogtreecommitdiff
path: root/test/files/pos/t5137.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-05-13 19:05:44 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-05-13 19:05:44 +0200
commitb19dfd8a59595372c1d26ab86b7376cdd4cbfc70 (patch)
tree92186d7416de74bc14de0b7fb9cdaf25e9cb98dc /test/files/pos/t5137.scala
parent4cd0253d0d461d01672334d240bc5249027f536b (diff)
downloadscala-b19dfd8a59595372c1d26ab86b7376cdd4cbfc70.tar.gz
scala-b19dfd8a59595372c1d26ab86b7376cdd4cbfc70.tar.bz2
scala-b19dfd8a59595372c1d26ab86b7376cdd4cbfc70.zip
Test case closes SI-5137.
virtpatmat strikes again.
Diffstat (limited to 'test/files/pos/t5137.scala')
-rw-r--r--test/files/pos/t5137.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t5137.scala b/test/files/pos/t5137.scala
new file mode 100644
index 0000000000..bb72cf378f
--- /dev/null
+++ b/test/files/pos/t5137.scala
@@ -0,0 +1,17 @@
+object Test {
+
+ // okay
+ (1 * (List[BigInt]().map(((x0) => x0 match {
+ case x => x
+ })).sum))
+
+ // okay
+ ((1: BigInt) * (List[BigInt]().map({
+ case x => x
+ }).sum))
+
+ // fail
+ (1 * (List[BigInt]().map({
+ case x => x
+ }).sum))
+} \ No newline at end of file