aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/t8072.scala
blob: dddb8c5f207aa39a0633b8cdea304d33b702ca2d (plain) (tree)
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
}