scala.scalanative.util.ScalaStdlibCompat.scala Maven / Gradle / Ivy
package scala.scalanative.util
object ScalaStdlibCompat {
private[scalanative] object ArraySeqCompatDef {
val ArraySeq = scala.collection.immutable.Vector
type ArraySeq[T] = scala.collection.immutable.Vector[T]
}
private[scalanative] object ArraySeqCompatSelect {
import ArraySeqCompatDef._
object Inner {
import scala.collection.immutable._
val ArraySeqAlias = ArraySeq
type ArraySeqAlias[T] = ArraySeq[T]
}
}
// Vector in Scala 2.12, ArraySeq otherwise
val ArraySeqCompat = ArraySeqCompatSelect.Inner.ArraySeqAlias
type ArraySeqCompat[T] = ArraySeqCompatSelect.Inner.ArraySeqAlias[T]
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy