summaryrefslogtreecommitdiff
path: root/test/files/neg/t8072.scala
blob: 2c8213e34ad640095fd59d90c9f8fb46ba91034d (plain) (blame)
1
2
3
4
5
6
class NoIfParSeq {
  import collection.parallel._
  val x = List(1,2)
  val y = x.ifParSeq[Int](throw new Exception).otherwise(0)  // Shouldn't compile
  val z = x.toParArray
}