Files
Toshiaki Kameyama 96c4d9862e "Simplify boolean expression": handle Boolean? comparison correctly
So #KT-23377 Fixed

GitOrigin-RevId: 5932428699a3aec94ea2caa1886eb5f959fbd2f9
2018-04-03 19:49:31 +03:00

5 lines
190 B
Kotlin

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
}