Skip to content

Commit 2ec3c25

Browse files
committed
Fix scala.collection.immutable.TreeSet.sortedIterableFactory
1 parent e271e91 commit 2ec3c25

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

project/MiMaFilters.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ object MiMaFilters {
104104
"scala.collection.immutable.ArraySeq#*.elemTag",
105105
"scala.collection.immutable.HashCollisionSetNode.copy",
106106
"scala.collection.immutable.MapKeyValueTupleHashIterator.next",
107-
"scala.collection.immutable.TreeSet.sortedIterableFactory",
108107
"scala.collection.LinearSeqIterator#LazyCell.this",
109108
"scala.collection.mutable.AnyRefMap#ToBuildFrom.newBuilder",
110109
"scala.collection.mutable.ArraySeq#*.elemTag",

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.immutable.TreeSet.sortedIterableFactory"),
119118
ProblemMatcher.make(ProblemKind.IncompatibleTypeChange, "scala.collection.View.*PartitionMapped.iterator"),
120119
ProblemMatcher.make(ProblemKind.IncompatibleTypeChange, "scala.concurrent.duration.FiniteDuration.unary_-"),
121120
ProblemMatcher.make(ProblemKind.MissingTermMember, "scala.collection.convert.JavaCollectionWrappers.IterableWrapperTrait.iterator"),

stdlib-bootstrapped/src/scala/collection/immutable/TreeSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class TreeSet[A] private[immutable] (private[immutable] val tree: RB.Tree[
4848

4949
def this()(implicit ordering: Ordering[A]) = this(null)(ordering)
5050

51-
override def sortedIterableFactory = TreeSet
51+
override def sortedIterableFactory: TreeSet.type = TreeSet
5252

5353
private[this] def newSetOrSelf(t: RB.Tree[A, Any]) = if(t eq tree) this else new TreeSet[A](t)
5454

0 commit comments

Comments
 (0)