Make ReplaceWith work for objects (KT-16211, KT-14929)
#KT-16211 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Replace with 'New'" "true"
|
||||
package some
|
||||
|
||||
object New {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
@Deprecated("Use New", replaceWith = ReplaceWith("New"))
|
||||
object Old {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
val test = some.<caret>Old
|
||||
Reference in New Issue
Block a user