diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-05-13 19:05:44 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-05-13 19:05:44 +0200 |
commit | b19dfd8a59595372c1d26ab86b7376cdd4cbfc70 (patch) | |
tree | 92186d7416de74bc14de0b7fb9cdaf25e9cb98dc /test/files/pos | |
parent | 4cd0253d0d461d01672334d240bc5249027f536b (diff) | |
download | scala-b19dfd8a59595372c1d26ab86b7376cdd4cbfc70.tar.gz scala-b19dfd8a59595372c1d26ab86b7376cdd4cbfc70.tar.bz2 scala-b19dfd8a59595372c1d26ab86b7376cdd4cbfc70.zip |
Test case closes SI-5137.
virtpatmat strikes again.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t5137.scala | 17 |
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 |