aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t5137.scala
blob: d5b6036df8786e59d9ff1f8207f93d94816e7a70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))
}