Skip to content

Instantly share code, notes, and snippets.

@Idorobots
Last active March 21, 2017 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Idorobots/d8b77b744862f00b2bcf808a555d5e6a to your computer and use it in GitHub Desktop.
Save Idorobots/d8b77b744862f00b2bcf808a555d5e6a to your computer and use it in GitHub Desktop.
// SBT version 0.13.9
// Scala version 2.11.8
// Wartremover version 2.0.2
// Scalatest version 3.0.0
package warttest
import org.scalatest.{FunSpec, Matchers}
class WartAnySpec extends FunSpec with Matchers {
describe("Wartremover") {
it("should not fail") {
info("hello world") // Inferred type containing Any
// This works though:
// val informer = info
// informer("hello world")
1 + 2 shouldBe 3
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment