Files
Jaebaek Seo f70d1e4900 FIR inspection: handle nullable boolean elvis
This commit adds KotlinHLNullableBooleanElvisInspection class that
detects elvis operations with a nullable boolean and a constant
boolean value e.g., "a ?: false" and replaces them with the ones with
equality checks e.g., "a == true".

GitOrigin-RevId: b0a3b9f86a3a21040c53010d51b5bdae6b3c2cb5
2022-08-02 22:26:11 +00:00

4 lines
63 B
Plaintext

fun foo() {
var b: Boolean? = null
val x = b == false
}