This works as expected:
@Test
fun test() {
val result = "some-string"
assertThat(result).isEqualTo("some-string")
}
This fails with a false positive:
@Test
fun test() {
fun Assert<String>.assertResult() {
this.isEqualTo("some-string")
}
assertThat("").apply { assertResult() }
}
This works as expected:
This fails with a false positive: