diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-02-18 17:15:12 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-02-18 17:15:12 +0100 |
commit | 15f049773c2d2ef0e5df12341920794e8759ba9f (patch) | |
tree | d2aa3210a59cd58f5769b9ad1fc254cad251eec3 /test/files | |
parent | 6242e7fc121fd5b31502119be7592ad155613d79 (diff) | |
parent | 9be10bc084e8da77a773d6736c6a232ecd40b0c0 (diff) | |
download | scala-15f049773c2d2ef0e5df12341920794e8759ba9f.tar.gz scala-15f049773c2d2ef0e5df12341920794e8759ba9f.tar.bz2 scala-15f049773c2d2ef0e5df12341920794e8759ba9f.zip |
Merge pull request #3529 from Ichoran/issue/8072
SI-8072 rationalize public implicits in scala parallel collections
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t8072.check | 4 | ||||
-rw-r--r-- | test/files/neg/t8072.scala | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t8072.check b/test/files/neg/t8072.check new file mode 100644 index 0000000000..9267010135 --- /dev/null +++ b/test/files/neg/t8072.check @@ -0,0 +1,4 @@ +t8072.scala:4: error: value ifParSeq is not a member of List[Int] + val y = x.ifParSeq[Int](throw new Exception).otherwise(0) // Shouldn't compile + ^ +one error found 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 |