Files
kotlin-fork/idea/testData/inspectionsLocal/replaceNegatedIsEmptyWithIsNotEmpty/simple.kt
T
2018-12-26 19:25:14 +03:00

8 lines
152 B
Kotlin
Vendored

// WITH_RUNTIME
// FIX: Replace negated 'isEmpty' with 'isNotEmpty'
fun test() {
val list = listOf(1,2,3)
if (!list.<caret>isEmpty()) {
}
}