Make ReplaceWith work for objects (KT-16211, KT-14929)

#KT-16211 Fixed
This commit is contained in:
Nikolay Krasko
2018-09-25 17:45:06 +03:00
parent 18c181641f
commit 0833f23d02
8 changed files with 107 additions and 3 deletions
@@ -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