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

6 lines
179 B
Kotlin
Vendored

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