Last active
March 21, 2017 14:31
-
-
Save Idorobots/d8b77b744862f00b2bcf808a555d5e6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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