diff options
Diffstat (limited to 'src/library/scalax/collection/immutable/Iterable.scala')
-rw-r--r-- | src/library/scalax/collection/immutable/Iterable.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/library/scalax/collection/immutable/Iterable.scala b/src/library/scalax/collection/immutable/Iterable.scala index 07e1fed890..0e6bb8fae0 100644 --- a/src/library/scalax/collection/immutable/Iterable.scala +++ b/src/library/scalax/collection/immutable/Iterable.scala @@ -1,6 +1,7 @@ package scalax.collection.immutable -import generic.covariant +import generic._ +import annotation.unchecked.uncheckedVariance /** Collection classes mixing in this class provide a method * <code>elements</code> which returns an iterator over all the @@ -14,9 +15,9 @@ import generic.covariant * @version 2.8 */ trait Iterable[+A] extends collection.Iterable[A] - with covariant.IterableTemplate[Iterable, A] + with IterableTemplate[Iterable, A @uncheckedVariance] -object Iterable extends covariant.IterableFactory[Iterable] { +object Iterable extends IterableFactory[Iterable] with EmptyIterableFactory[Iterable] { val empty: Iterable[Nothing] = Nil } |