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