diff options
Diffstat (limited to 'src/library/scalax/collection/immutable/Stream.scala')
-rwxr-xr-x | src/library/scalax/collection/immutable/Stream.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/library/scalax/collection/immutable/Stream.scala b/src/library/scalax/collection/immutable/Stream.scala index 3581ac5b5d..036fefe70c 100755 --- a/src/library/scalax/collection/immutable/Stream.scala +++ b/src/library/scalax/collection/immutable/Stream.scala @@ -12,7 +12,8 @@ package scalax.collection.immutable import mutable.ListBuffer -import generic.covariant.{SequenceTemplate, SequenceFactory} +import generic.{SequenceTemplate, SequenceFactory, EmptyIterableFactory, Builder, LazyBuilder} +import annotation.unchecked.uncheckedVariance /** * The object <code>Stream</code> provides helper functions @@ -21,7 +22,7 @@ import generic.covariant.{SequenceTemplate, SequenceFactory} * @author Martin Odersky, Matthias Zenger * @version 1.1 08/08/03 */ -object Stream extends SequenceFactory[Stream] { +object Stream extends SequenceFactory[Stream] with EmptyIterableFactory[Stream] { import collection.{Iterable, OrderedIterable, Sequence, Vector} @@ -417,7 +418,7 @@ import Stream._ * @version 1.1 08/08/03 */ abstract class Stream[+A] extends Sequence[A] - with SequenceTemplate[Stream, A] { + with SequenceTemplate[Stream, A @uncheckedVariance] { self => import collection.{Iterable, OrderedIterable, Sequence, Vector} |