diff options
Diffstat (limited to 'test/files/neg/t8072.scala')
-rw-r--r-- | test/files/neg/t8072.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8072.scala b/test/files/neg/t8072.scala new file mode 100644 index 0000000000..2c8213e34a --- /dev/null +++ b/test/files/neg/t8072.scala @@ -0,0 +1,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 +}
\ No newline at end of file |