You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is already handled somehow and I'm missing how to use the compat library to work around it.
I'm struggling to find a way to cross-build between 2.12 an 2.13 when using IterableView in 2.12 and View in 2.13, since neither trait exists in the other version. What I've ended up doing is creating 2.12 and 2.13 specific source trees and defined the following:
// In 2.12traitCrossCompatView[A, Coll] extends scala.collection.IterableView[A, Coll] {
defunderlying:Coll=this.asInstanceOf[Coll]
}
// In 2.13traitCrossCompatView[A, Coll] extends scala.collection.View[A]
It would be nice if the collection-compat library could remove the need for this, either by introducing View[A] in the 2.12 tree or adding back a deprecated IterableView[A, Coll] in the 2.13 tree.
The text was updated successfully, but these errors were encountered:
I think that would probably also work ... would just require classes mixing in the trait to still implement he underlying method from IterableView to satisfy things under 2.12. But yes, that would largely work.
Apologies if this is already handled somehow and I'm missing how to use the compat library to work around it.
I'm struggling to find a way to cross-build between 2.12 an 2.13 when using
IterableView
in 2.12 andView
in 2.13, since neither trait exists in the other version. What I've ended up doing is creating 2.12 and 2.13 specific source trees and defined the following:It would be nice if the collection-compat library could remove the need for this, either by introducing
View[A]
in the 2.12 tree or adding back a deprecatedIterableView[A, Coll]
in the 2.13 tree.The text was updated successfully, but these errors were encountered: