Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/importedObjectFunctionAddReceiver.kt
T
2020-05-19 15:40:59 +07:00

13 lines
254 B
Kotlin
Vendored

// "Replace with 'str.isEmpty()'" "true"
// WITH_RUNTIME
import Bar.bar
fun foo(s: String) {
<caret>bar(s)
}
object Bar {
@Deprecated(message = "", replaceWith = ReplaceWith("str.isEmpty()"))
fun bar(str: String): Boolean = str.isEmpty()
}