Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/lineBreakAfterReceiverRuntime.kt
T
2015-05-28 16:14:15 +03:00

15 lines
314 B
Kotlin
Vendored

// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun Int.oldFun(): Int = this
fun Int.newFun(): Int = this
fun foo(list: List<String>): Int {
return list
.filter { it.isNotEmpty() }
.map { it.length() }
.first()
.<caret>oldFun()
}