Files
kotlin-fork/idea/testData/inspectionsLocal/replaceNegatedIsEmptyWithIsNotEmpty/stringIsNotEmpty.kt
T
2019-03-06 11:06:40 +03:00

6 lines
182 B
Kotlin
Vendored

// PROBLEM: Replace negated 'isNotEmpty' with 'isEmpty'
// FIX: Replace negated 'isNotEmpty' with 'isEmpty'
// WITH_RUNTIME
fun test(s: String) {
val b = !s.isNotEmpty<caret>()
}