aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/specializes-sym-crash.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/specializes-sym-crash.scala')
-rw-r--r--tests/pending/pos/specializes-sym-crash.scala26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/pending/pos/specializes-sym-crash.scala b/tests/pending/pos/specializes-sym-crash.scala
deleted file mode 100644
index 7778ba277..000000000
--- a/tests/pending/pos/specializes-sym-crash.scala
+++ /dev/null
@@ -1,26 +0,0 @@
-import scala.collection._
-
-trait Foo[+A,
- +Coll,
- +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 SeqView[B, Coll] with super.Transformed[B] {
- def length: Int
- def apply(idx: Int): B
- override def toString = viewToString
- }
- trait Reversed extends Transformed[A] {
- override def iterator: Iterator[A] = createReversedIterator
- def length: Int = self.length
- def apply(idx: Int): A = self.apply(length - 1 - idx)
- final override protected[this] def viewIdentifier = "R"
-
- private def createReversedIterator = {
- var lst = List[A]()
- for (elem <- self) lst ::= elem
- lst.iterator
- }
- }
-}