diff options
author | Martin Odersky <odersky@gmail.com> | 2005-07-07 16:01:09 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2005-07-07 16:01:09 +0000 |
commit | 5e728c60b7eb4bcc7e3a2476a2d5a6947698bfe4 (patch) | |
tree | c900577e7d683e608ff56aa003083a9a320b0b10 /newsources | |
parent | 1e33553484b0a842b8e8ade819294c028892e253 (diff) | |
download | scala-5e728c60b7eb4bcc7e3a2476a2d5a6947698bfe4.tar.gz scala-5e728c60b7eb4bcc7e3a2476a2d5a6947698bfe4.tar.bz2 scala-5e728c60b7eb4bcc7e3a2476a2d5a6947698bfe4.zip |
*** empty log message ***
Diffstat (limited to 'newsources')
-rwxr-xr-x | newsources/scala/Array.scala | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/newsources/scala/Array.scala b/newsources/scala/Array.scala index 7e3b0e225e..6172a6f77d 100755 --- a/newsources/scala/Array.scala +++ b/newsources/scala/Array.scala @@ -11,13 +11,7 @@ package scala; final class Array[T](val length: Int) extends Cloneable with java.io.Serializable with Seq[T] { - - def apply(i: Int): T; - def update(i: Int, x: T): Unit; - - def elements = new Iterator[T] { - var index = 0; - def hasNext: Boolean = index < length; - def next: T = { val i = index; index = i + 1; apply(i) } - } + def apply(i: Int): T = throw new Error(); + def update(i: Int, x: T): Unit = throw new Error(); + def elements: Iterator[T] = throw new Error(); } |