e2f75463d7
Don't reconfigure runtime before every test. For consistency, mark tests that require the runtime with directives instead of relying on test file names.
19 lines
298 B
Plaintext
Vendored
19 lines
298 B
Plaintext
Vendored
// "Replace with 'newFun(p2)'" "true"
|
|
// WITH_RUNTIME
|
|
|
|
@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
|