diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2007-08-29 17:06:18 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2007-08-29 17:06:18 +0000 |
commit | c8f68128c1fae19c42e977be3181ccdcdefc53ed (patch) | |
tree | da1cce96111a65680eef1d5879c5cea27d2767fd /src/library | |
parent | 10bd9e9c8ea541b22ed87319e04f957621b20de7 (diff) | |
download | scala-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.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Array.scala | 4 | ||||
-rw-r--r-- | src/library/scala/runtime/BoxedArray.scala | 4 |
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 } |