"Simplify boolean expression": handle Boolean? comparison correctly
So #KT-23377 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a495c2e5ea
commit
f91819ace7
+5
@@ -0,0 +1,5 @@
|
||||
data class Test(val notnull: Boolean, val nullable: Boolean?)
|
||||
|
||||
fun test(a: Test, b: Test?) {
|
||||
a.notnull || a.nullable == true || b?.notnull == true || b?.nullable == true
|
||||
}
|
||||
Reference in New Issue
Block a user