DeprecatedSymbolUsageFix - correct dealing with implicit receivers + fixed KT-7776 in completion
#KT-7776 Fixed
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// "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>oldFun()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user