Skip to content

Commit b19dfd8

Browse files
committed
Test case closes SI-5137.
virtpatmat strikes again.
1 parent 4cd0253 commit b19dfd8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/files/pos/t5137.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
object Test {
2+
3+
// okay
4+
(1 * (List[BigInt]().map(((x0) => x0 match {
5+
case x => x
6+
})).sum))
7+
8+
// okay
9+
((1: BigInt) * (List[BigInt]().map({
10+
case x => x
11+
}).sum))
12+
13+
// fail
14+
(1 * (List[BigInt]().map({
15+
case x => x
16+
}).sum))
17+
}

0 commit comments

Comments
 (0)