summaryrefslogtreecommitdiff
path: root/test/files/pos/specializes-sym-crash.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-11-24 22:25:28 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-11-26 17:17:21 +0100
commit51cd47491e979b10b5d86992dd2e3efd08f7e214 (patch)
tree773fbd35c1be49a13437214fff23c5e2d80d929c /test/files/pos/specializes-sym-crash.scala
parent2ce7b1269aebcc83ee433f4114779e54ee43f9f3 (diff)
downloadscala-51cd47491e979b10b5d86992dd2e3efd08f7e214.tar.gz
scala-51cd47491e979b10b5d86992dd2e3efd08f7e214.tar.bz2
scala-51cd47491e979b10b5d86992dd2e3efd08f7e214.zip
Removes Gen*View and Par*View
- code that used to be inherited in *View is now inlined - the `view` methods on `ParIteratoa` and `ParSeq` now convert to sequential collections, and are deprecated asking the user to do this explicitly in the future. Should be largely source compatible with 2.10.x, on the assumption that the removed classes, while being public, were internal implementation details. A few tests used now-removed classes to demonstrate compiler crashes. I managed to confirm that after my decoupling, t4365 still exercises the bug: % qbin/scalac test/files/pos/t4365/*.scala warning: there were 2 deprecation warning(s); re-run with -deprecation for details one warning found % scalac-hash 7b4e450 test/files/pos/t4365/*.scala warning: there were 2 deprecation warning(s); re-run with -deprecation for details one warning found % scalac-hash 7b4e450~1 test/files/pos/t4365/*.scala 2<&1 | grep -i wrong error: something is wrong: cannot make sense of type application something is wrong: cannot make sense of type application something is wrong: cannot make sense of type application I didn't manage to do the same for specializes-sym-crash.scala, and instead just made it compile.
Diffstat (limited to 'test/files/pos/specializes-sym-crash.scala')
-rw-r--r--test/files/pos/specializes-sym-crash.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/specializes-sym-crash.scala b/test/files/pos/specializes-sym-crash.scala
index c46f435ac4..7778ba277b 100644
--- a/test/files/pos/specializes-sym-crash.scala
+++ b/test/files/pos/specializes-sym-crash.scala
@@ -2,11 +2,11 @@ import scala.collection._
trait Foo[+A,
+Coll,
- +This <: GenSeqView[A, Coll] with GenSeqViewLike[A, Coll, This]]
-extends GenSeq[A] with GenSeqLike[A, This] with GenIterableView[A, Coll] with GenIterableViewLike[A, Coll, This] {
+ +This <: SeqView[A, Coll] with SeqViewLike[A, Coll, This]]
+extends Seq[A] with SeqLike[A, This] with IterableView[A, Coll] with IterableViewLike[A, Coll, This] {
self =>
- trait Transformed[+B] extends GenSeqView[B, Coll] with super.Transformed[B] {
+ trait Transformed[+B] extends SeqView[B, Coll] with super.Transformed[B] {
def length: Int
def apply(idx: Int): B
override def toString = viewToString