Add inspection to simplify successive null checks #KT-14799 Fixed

This commit is contained in:
Dimach
2017-06-21 15:02:06 +03:00
committed by Mikhail Glukhikh
parent fc12f37105
commit 7407083624
17 changed files with 307 additions and 0 deletions
@@ -0,0 +1,10 @@
fun main(args: Array<String>) {
val a: Testtt? = Testtt()
if (a<caret> == null || a.a == null || a.a.a == null || a.a.a.a == null) {
}
}
class Testtt {
val a: Testtt? = null
}