summaryrefslogblamecommitdiff
path: root/test/files/pos/t5137.scala
blob: bb72cf378f3796f0d0f74d734d0bff9056050da7 (plain) (tree)
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))
}