-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-work 2.13 collections changes #210
Conversation
I've also rebased the working branch Lukas pushed to https://github.com/scala/scala-xml/tree/newCollectionsBootstrap onto this rebased branch and pushed it to my fork: ashawley/scala-xml@2.13-collections...newCollectionsBootstrap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Adding the rest of the commits in |
Preserve for binary compatability. Scala 2.13 collections rewrite defaults to immutable.Seq.
Fix compiler error with Scala 2.13 collections rewrite: ambiguous reference to overloaded definition, both method map in trait StrictOptimizedIterableOps of type [B](f: Int => B)scala.collection.immutable.Set[B] and method map in trait SortedSetOps of type [B](f: Int => B)(implicit evidence$4: Ordering[B])scala.collection.immutable.SortedSet[B] match argument types (Int => scala.collection.immutable.BitSet) (Q map f).foldLeft(immutable.BitSet.empty)(_ ++ _) ^
Compiler complains after Scala 2.13 collections rewrite that value updated is not a member of scala.collection.Map
Compiler complains with new Scala 2.13 collection reassignment to val cbuf.length = 0 ^
8bf675e
to
4d1d67a
Compare
I've rebased master and push-forced on to the WIP |
what's the path forward to getting |
(the merge onto master is in process at #260) |
While verifying the #202 changes were binary compatible, I went and rebased and then re-worked the first changes from Lukas for the latest 2.13.x collections. The result is a more minimal changeset, fwiw.
scala.collection.Seq
instead of search-and-replace,mutable.Map
,StringBuilder.setLength
instead ofStringBuilder.clear