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

izumi.fundamentals.platform.assertions.PlatformGuards.scala Maven / Gradle / Ivy

The newest version!
package izumi.fundamentals.platform.assertions

import izumi.fundamentals.platform.language.IzScala

trait PlatformGuards {
  final def brokenOnScala3(f: => Any): Unit = {
    if (IzScala.scalaRelease.major == 3) broken(f) else f;
    ()
  }

  final def brokenOnScala2(f: => Any): Unit = {
    if (IzScala.scalaRelease.major == 2) broken(f) else f;
    ()
  }

  def broken(f: => Any): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy