Files
Dimach 1237d2a838 Add inspection to simplify successive null checks #KT-14799 Fixed
GitOrigin-RevId: a38c1d6e0ad32134b744340e71fe350bc2fed1a0
2017-07-11 18:47:26 +03:00

7 lines
95 B
Plaintext

class My {
fun foo(): String? = null
}
fun test(my: My?) {
if (my?.foo() != null) {}
}