18 lines
282 B
Plaintext
Vendored
18 lines
282 B
Plaintext
Vendored
// "Replace with 'newFun(p2)'" "true"
|
|
|
|
@Deprecated("", ReplaceWith("newFun(p2)"))
|
|
fun oldFun(p1: Int, p2: Int): Boolean {
|
|
return newFun(p2)
|
|
}
|
|
|
|
fun newFun(p: Int) = false
|
|
|
|
fun foo(list: List<Int>) {
|
|
list.filter {
|
|
bar()
|
|
!newFun(it)
|
|
}
|
|
}
|
|
|
|
fun bar(): Int = 0
|