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

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

The 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 - 2024 Weber Informatics LLC | Privacy Policy