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

org.specs2.control.LanguageFeatures.scala Maven / Gradle / Ivy

There is a newer version: 4.10.6
Show newest version
package org.specs2
package control

/**
 * implicits and postfix ops are automatically mixed in specs2 specifications
 * for convenience. If you *really* don't want that you can override this behaviour by using the NoLanguageFeatures trait
 */
trait LanguageFeatures {
  implicit lazy val implicitsAreAllowed = language.implicitConversions
  implicit lazy val postfixOpsAreAllowed = language.postfixOps
}

trait NoLanguageFeatures extends LanguageFeatures {
  override lazy val implicitsAreAllowed = language.implicitConversions
  override lazy val postfixOpsAreAllowed = language.postfixOps
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy