Add inspection to simplify successive null checks #KT-14799 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class My {
|
||||
fun foo(): String? = null
|
||||
}
|
||||
|
||||
fun test(my: My?) {
|
||||
if (<caret>my != null && my.foo() != null) {}
|
||||
}
|
||||
Reference in New Issue
Block a user