Closed mario-bucev closed 1 year ago
Not directly related, but the postcondition is also affected as well:
object EnsuringPostcond {
def test(): Int = {
5
} ensuring (_ == {
val x = scala.Option(2)
5
})
}
This time, StaticChecks
is also affected.
In the following snippet, we expect the
FragmentChecker
to report an error due to using the Scala variant ofOption
:However, it does not, and we instead get a recovery at a later phase:
This issue does not affect
StaticChecks
(for some reasons)