summaryrefslogtreecommitdiff
path: root/test/files/pos/spec-List.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-04-13 16:32:01 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-04-13 16:32:01 +0000
commit9334ad0db28f62c3e1d33d6b12e03720a76fb1eb (patch)
tree69e6c6eb0c6a9b714447cc8eaa2331cbd1233c33 /test/files/pos/spec-List.scala
parentaf358131de08e41bdb3d2bba46f309f0c03ab03b (diff)
downloadscala-9334ad0db28f62c3e1d33d6b12e03720a76fb1eb.tar.gz
scala-9334ad0db28f62c3e1d33d6b12e03720a76fb1eb.tar.bz2
scala-9334ad0db28f62c3e1d33d6b12e03720a76fb1eb.zip
Fixed some tests, renamed from Any to Gen.
No review.
Diffstat (limited to 'test/files/pos/spec-List.scala')
-rw-r--r--test/files/pos/spec-List.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/spec-List.scala b/test/files/pos/spec-List.scala
index 6a39632451..04ab7d1543 100644
--- a/test/files/pos/spec-List.scala
+++ b/test/files/pos/spec-List.scala
@@ -144,7 +144,7 @@ sealed trait List[@specialized +A] extends LinearSeq[A]
/** Create a new list which contains all elements of this list
* followed by all elements of Traversable `that'
*/
- override def ++[B >: A, That](xs: AnyTraversableOnce[B])(implicit bf: CanBuildFrom[List[A], B, That]): That = {
+ override def ++[B >: A, That](xs: GenTraversableOnce[B])(implicit bf: CanBuildFrom[List[A], B, That]): That = {
val b = bf(this)
if (b.isInstanceOf[ListBuffer[_]]) (this ::: xs.toList).asInstanceOf[That]
else super.++(xs)