-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
good first issueGood for newcomersGood for newcomerslibraryRelated to compat library code (not rewrite rules)Related to compat library code (not rewrite rules)
Description
SortedSet.map
in 2.12 returns a Set
if it cannot find an implicit Ordering. To keep this behavior in 2.13, you can use unsorted
. However, this method is not available in 2.12.
case class A(v: Int)
val set = collection.immutable.SortedSet(1)
set.map(x => A(x))
// Set(A(1)): Set[A] in 2.12
// error: No implicit Ordering defined for A. in 2.13
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerslibraryRelated to compat library code (not rewrite rules)Related to compat library code (not rewrite rules)