All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.scalanative.util.ScalaStdlibCompat.scala Maven / Gradle / Ivy

There is a newer version: 0.5.5
Show newest version
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