"Simplify boolean expression": handle Boolean? comparison correctly

So #KT-23377 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-03-24 10:50:27 +03:00
committed by Mikhail Glukhikh
parent a495c2e5ea
commit f91819ace7
4 changed files with 28 additions and 7 deletions
@@ -0,0 +1,5 @@
data class Test(val notnull: Boolean, val nullable: Boolean?)
fun test(a: Test, b: Test?) {
<caret>a.notnull == true || a.nullable == true || b?.notnull == true || b?.nullable == true
}