For code cleanliness reasons, my projects report a compiler error for discarded non-unit values. Because of the changes to Assertion, this has led to hundreds of compiler errors going from M10 -> M11.
class ExampleTest extends FunSuite with Matchers {
test("this used to compile") {
(1 + 1) shouldBe(2)
}
}
`test` has a Unit return type. Now that the matchers return an `Assertion`, the compiler errors out telling me that I'm throwing away a value. The only way to fix it is to explicitely return Unit:
class ExampleTest extends FunSuite with Matchers {
test("this used to compile") {
(1 + 1) shouldBe(2)
()
}
}
Anyway we can preserve the original example?