summaryrefslogtreecommitdiff
path: root/test/files/neg/t8072.check
diff options
context:
space:
mode:
authorRex Kerr <ichoran@gmail.com>2014-02-13 16:28:36 -0800
committerRex Kerr <ichoran@gmail.com>2014-02-18 03:37:00 -0800
commit9be10bc084e8da77a773d6736c6a232ecd40b0c0 (patch)
tree02a3ee555eaa4aff9af89305f0863b26db0d097a /test/files/neg/t8072.check
parent8536c3148d5a6283b580a905ca4231e852525d59 (diff)
downloadscala-9be10bc084e8da77a773d6736c6a232ecd40b0c0.tar.gz
scala-9be10bc084e8da77a773d6736c6a232ecd40b0c0.tar.bz2
scala-9be10bc084e8da77a773d6736c6a232ecd40b0c0.zip
SI-8072 rationalize public implicits in scala parallel collections
Pretty much everything seems like it's intended for internal use, so I moved it to a package-private object. Split toParArray out and put it in an implicit class. Added ability to .toParArray from Array and String also. Added test to verify implicits are gone.
Diffstat (limited to 'test/files/neg/t8072.check')
-rw-r--r--test/files/neg/t8072.check4
1 files changed, 4 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