summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2007-08-29 17:06:18 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2007-08-29 17:06:18 +0000
commitc8f68128c1fae19c42e977be3181ccdcdefc53ed (patch)
treeda1cce96111a65680eef1d5879c5cea27d2767fd
parent10bd9e9c8ea541b22ed87319e04f957621b20de7 (diff)
downloadscala-c8f68128c1fae19c42e977be3181ccdcdefc53ed.tar.gz
scala-c8f68128c1fae19c42e977be3181ccdcdefc53ed.tar.bz2
scala-c8f68128c1fae19c42e977be3181ccdcdefc53ed.zip
Forgot to enable the Array Projection type in A...
Forgot to enable the Array Projection type in Array.
-rw-r--r--src/library/scala/Array.scala4
-rw-r--r--src/library/scala/runtime/BoxedArray.scala4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/Array.scala b/src/library/scala/Array.scala
index edaf6f6613..fa282fb044 100644
--- a/src/library/scala/Array.scala
+++ b/src/library/scala/Array.scala
@@ -204,6 +204,10 @@ object Array {
}
trait Array0[A] extends RandomAccessSeq.Mutable[A] {
override def projection : Projection[A] = throw new Error
+ override def slice(from : Int, until : Int) : Projection[A] = projection.slice(from, until)
+ override def take(until : Int) : Projection[A] = projection.take(until)
+ override def drop(from : Int) : Projection[A] = projection.drop(from)
+ override def reverse = projection.reverse
}
}
diff --git a/src/library/scala/runtime/BoxedArray.scala b/src/library/scala/runtime/BoxedArray.scala
index 26be18946d..1cffb0b469 100644
--- a/src/library/scala/runtime/BoxedArray.scala
+++ b/src/library/scala/runtime/BoxedArray.scala
@@ -195,8 +195,4 @@ abstract class BoxedArray extends Array.Array0[Any] {
protected def newArray[B >: Any](length : Int, elements : Iterator[Any]) =
BoxedArray.this.newArray(length, elements).asInstanceOf[Array[B]]
}
- override def slice(from : Int, until : Int) = projection.slice(from,until)
- override def take(until : Int) = projection.take(until)
- override def drop(from : Int) = projection.drop(from)
- override def reverse = projection.reverse
}