Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/lineBreakAfterReceiverRuntime.kt
T
2015-09-04 18:19:31 +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()
}