diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-06 00:42:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-06 00:42:50 +0000 |
commit | 3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18 (patch) | |
tree | 645c05a441a60a8620eb67ac89b61d4abd9946b7 /test/files/pos | |
parent | b6f8761f03174a7a62ae3869685a5bd5ce56f45e (diff) | |
download | scala-3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18.tar.gz scala-3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18.tar.bz2 scala-3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18.zip |
Fix for the partest task to fail the build when...
Fix for the partest task to fail the build when a test fails, and fixes
for 2/3 of the quietly failing tests. I'm not quite sure what to do
about the view ones, it doesn't look like a simple rename is going to
cut it, so: review by odersky.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/spec-List.scala | 2 | ||||
-rw-r--r-- | test/files/pos/spec-arrays.scala | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/files/pos/spec-List.scala b/test/files/pos/spec-List.scala index 6a506aa4be..e49391f0e4 100644 --- a/test/files/pos/spec-List.scala +++ b/test/files/pos/spec-List.scala @@ -26,7 +26,7 @@ import annotation.tailrec sealed trait List[@specialized +A] extends LinearSeq[A] with Product with GenericTraversableTemplate[A, List] - with LinearSeqLike[A, List[A]] { + with LinearSeqOptimized[A, List[A]] { override def companion: GenericCompanion[List] = List import scala.collection.{Iterable, Traversable, Seq} diff --git a/test/files/pos/spec-arrays.scala b/test/files/pos/spec-arrays.scala index c1f253a39d..96c75dd8de 100644 --- a/test/files/pos/spec-arrays.scala +++ b/test/files/pos/spec-arrays.scala @@ -30,7 +30,7 @@ final class IntArray(arr: Array[Int]) extends AbsArray[Int] { def length: Int = arr.length } -final class GenericArray[T](arr: Array[T]) extends AbsArray[T] { +final class ArraySeq[T](arr: Array[T]) extends AbsArray[T] { def apply(idx: Int): T = arr(idx) def update(idx: Int, elem: T) = arr(idx) = elem def length: Int = arr.length @@ -96,7 +96,7 @@ class ScalaSpec2Test extends Test { } class ScalaWrapTest extends Test { - val arr: AbsArray[Int] = new GenericArray(new Array[Int](1000)) + val arr: AbsArray[Int] = new ArraySeq(new Array[Int](1000)) def sum(): Int = { var acc = 0 @@ -116,7 +116,7 @@ class ScalaWrapTest extends Test { } class ScalaGenTest extends Test { - val arr: AbsArray[Integer] = new GenericArray(new Array[Integer](1000)) + val arr: AbsArray[Integer] = new ArraySeq(new Array[Integer](1000)) for (i <- 0 until arr.length) arr(i) = new Integer(0) def sum(): Int = { |