We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e947a commit eb0577fCopy full SHA for eb0577f
scala2-library-cc/src/scala/collection/Iterator.scala
@@ -1159,8 +1159,7 @@ object Iterator extends IterableFactory[Iterator] {
1159
// If we advanced the current iterator to a ConcatIterator, merge it into this one
1160
@tailrec def merge(): Unit =
1161
if (current.isInstanceOf[ConcatIterator[_]]) {
1162
- val c: ConcatIterator[A] { val from: Iterator[A] }
1163
- = current.asInstanceOf
+ val c: ConcatIterator[A] = current.asInstanceOf
1164
current = c.current.asInstanceOf // !!! CC unsafe op
1165
currentHasNextChecked = c.currentHasNextChecked
1166
if (c.tail != null) {
0 commit comments