is there a way to detect expectations that can nev...
# strikt
c
is there a way to detect expectations that can never fail, like
expectThat("blah").isA<String>()
?
thinking specifically of
isA<>
expectations when its clear at compile time
r
I’m not sure if it might be possible to do something with contracts in Kotlin 1.3
If it’s a reified type you can probably determine that it’s the same as the declared type of the receiver I guess and emit a warning.
That’s specific to isA, though
What we really need is limiting for meaningless comparisons
c
what meaningless comparisions are you thinking of except isA?
r
Nothing in particular