19 lines
251 B
Plaintext
Vendored
19 lines
251 B
Plaintext
Vendored
// "Replace with 'newFun(this)'" "true"
|
|
|
|
open class C {
|
|
@Deprecated("", ReplaceWith("newFun(this)"))
|
|
fun oldFun(){}
|
|
}
|
|
|
|
fun newFun(c: C){}
|
|
|
|
class X {
|
|
companion object : C() {
|
|
}
|
|
|
|
fun foo() {
|
|
<caret>newFun(Companion)
|
|
}
|
|
}
|
|
|