Skip to content

Commit c1f41df

Browse files
committed
Update the signature of eagerHeadConcatIterators
1 parent b1aac05 commit c1f41df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/collection/immutable/LazyListIterable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,11 +1268,11 @@ object LazyListIterable extends IterableFactory[LazyListIterable] {
12681268
if (xss.knownSize == 0) empty
12691269
else newLL(eagerHeadConcatIterators(xss.iterator))
12701270

1271-
private def eagerHeadConcatIterators[A](it: Iterator[collection.Iterable[A]^]^): LazyListIterable[A]^{it*} =
1271+
private def eagerHeadConcatIterators[A](it: Iterator[collection.Iterable[A]]^): LazyListIterable[A]^{it} =
12721272
if !it.hasNext then Empty
12731273
else
12741274
eagerHeadPrependIterator
1275-
(caps.unsafe.unsafeDiscardUses(it.next()).iterator)
1275+
(it.next().iterator)
12761276
(eagerHeadConcatIterators(it))
12771277

12781278
/** An infinite LazyListIterable that repeatedly applies a given function to a start value.

0 commit comments

Comments
 (0)