Skip to content

Commit 441bc48

Browse files
authored
Merge pull request scala#6901 from Prithvirajbilla/10995
Adds deprecated companion method to Iterable
2 parents 450398f + 6c95602 commit 441bc48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/library/scala/collection/Iterable.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
169169
*/
170170
def iterableFactory: IterableFactory[IterableCC]
171171

172+
@deprecated("Use iterableFactory instead", "2.13.0")
173+
@deprecatedOverriding("Use iterableFactory instead", "2.13.0")
174+
@`inline` def companion: IterableFactory[IterableCC] = iterableFactory
175+
172176
/**
173177
* @return a strict builder for the same collection type.
174178
*

0 commit comments

Comments
 (0)