From f83d8977544ec7fc3eed59e032e3705f30290c00 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 9 Dec 2008 17:40:50 +0000 Subject: updates to scalax collections and standard libr... updates to scalax collections and standard library classes. --- src/library/scalax/collection/generic/IterableFactory.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/library/scalax/collection/generic/IterableFactory.scala') diff --git a/src/library/scalax/collection/generic/IterableFactory.scala b/src/library/scalax/collection/generic/IterableFactory.scala index 264e333ac5..1362e97079 100755 --- a/src/library/scalax/collection/generic/IterableFactory.scala +++ b/src/library/scalax/collection/generic/IterableFactory.scala @@ -8,6 +8,9 @@ trait IterableFactory[CC[A] <: Iterable[A]] { protected def newBuilder[A]: Builder[CC, A] = apply().newBuilder[A].asInstanceOf[Builder[CC, A]] + // can't have an empty here because it is defined in subclass covariant.IterableFactory with type + // CC[Nothing]. This type does not make sense for immutable iterables. + /** Concatenate all the argument lists into a single list. * * @param xss the lists that are to be concatenated -- cgit v1.2.3