diff options
author | Martin Odersky <odersky@gmail.com> | 2009-02-13 11:59:49 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-02-13 11:59:49 +0000 |
commit | 04840e2ed4530df9a5ca59b984bf2b37a976dc70 (patch) | |
tree | 61394762e202f8ab60e0d3a8e8ac688404241bc3 /src/library/scalax/collection/immutable/Stream.scala | |
parent | 708baf94764e2a839e24ca6204060a8d0664d88c (diff) | |
download | scala-04840e2ed4530df9a5ca59b984bf2b37a976dc70.tar.gz scala-04840e2ed4530df9a5ca59b984bf2b37a976dc70.tar.bz2 scala-04840e2ed4530df9a5ca59b984bf2b37a976dc70.zip |
new version of collection libraries
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} |