Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/lineBreakAfterReceiverRuntime.kt
T
2015-10-14 20:39:35 +03:00

15 lines
312 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()
}