Skip to content

Commit 4fd9343

Browse files
committed
Fix scala.collection.View#{Left,Right}PartitionMapped.iterator
1 parent 0cdf04c commit 4fd9343

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

project/MiMaFilters.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ object MiMaFilters {
111111
"scala.collection.mutable.LongMap#ToBuildFrom.newBuilder",
112112
"scala.collection.mutable.PriorityQueue#ResizableArrayAccess.this",
113113
"scala.collection.StringView.andThen", "scala.collection.StringView.compose",
114-
"scala.collection.View#*.iterator",
115114
"scala.concurrent.BatchingExecutor#AbstractBatch.this",
116115
"scala.concurrent.Channel#LinkedList.this",
117116
"scala.concurrent.duration.Deadline.apply", "scala.concurrent.duration.Deadline.copy", "scala.concurrent.duration.Deadline.copy$default$1", "scala.concurrent.duration.FiniteDuration.unary_-",

project/TastyMiMaFilters.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ object TastyMiMaFilters {
115115
ProblemMatcher.make(ProblemKind.MissingTermMember, "scala.math.Big*.underlying"),
116116

117117
// Problem: Inferred result type of non-private member differs
118-
ProblemMatcher.make(ProblemKind.IncompatibleTypeChange, "scala.collection.View.*PartitionMapped.iterator"),
119118
ProblemMatcher.make(ProblemKind.IncompatibleTypeChange, "scala.concurrent.duration.FiniteDuration.unary_-"),
120119
ProblemMatcher.make(ProblemKind.MissingTermMember, "scala.collection.convert.JavaCollectionWrappers.IterableWrapperTrait.iterator"),
121120
ProblemMatcher.make(ProblemKind.IncompatibleTypeChange, "scala.util.matching.Regex.MatchIterator.replacementData"),

stdlib-bootstrapped/src/scala/collection/View.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ object View extends IterableFactory[View] {
164164

165165
@SerialVersionUID(3L)
166166
class LeftPartitionMapped[A, A1, A2](underlying: SomeIterableOps[A], f: A => Either[A1, A2]) extends AbstractView[A1] {
167-
def iterator = new AbstractIterator[A1] {
167+
def iterator: AbstractIterator[A1] = new AbstractIterator[A1] {
168168
private[this] val self = underlying.iterator
169169
private[this] var hd: A1 = _
170170
private[this] var hdDefined: Boolean = false
@@ -189,7 +189,7 @@ object View extends IterableFactory[View] {
189189

190190
@SerialVersionUID(3L)
191191
class RightPartitionMapped[A, A1, A2](underlying: SomeIterableOps[A], f: A => Either[A1, A2]) extends AbstractView[A2] {
192-
def iterator = new AbstractIterator[A2] {
192+
def iterator: AbstractIterator[A2] = new AbstractIterator[A2] {
193193
private[this] val self = underlying.iterator
194194
private[this] var hd: A2 = _
195195
private[this] var hdDefined: Boolean = false

0 commit comments

Comments
 (0)