Files
kotlin-fork/idea/testData/inspectionsLocal/nullableBooleanElvis/notInIfWithTrue.kt
T
Dimach d369fa094a Add Boolean? == const to elvis conversion and vice versa #KT-15368 Fixed
Convert elvis to equality check implemented as inspection due
code style guide
2017-06-15 15:01:39 +03:00

4 lines
72 B
Kotlin
Vendored

fun foo() {
var b: Boolean? = null
val x = !(b <caret>?: true)
}