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,12 @@
// PROBLEM: none
val a: Testtt? = Testtt()
fun main(args: Array<String>) {
if (a<caret> != null && a.a != null) {
}
}
class Testtt
val Testtt?.a: Testtt? get() = null