Replace deprecated symbol usage: replace imported object function correctly

#KT-33951 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-12 13:33:34 +09:00
committed by Dmitry Gridin
parent b2be1a53cf
commit 02c17378b1
4 changed files with 38 additions and 4 deletions
@@ -0,0 +1,13 @@
// "Replace with 'str.isEmpty()'" "true"
// WITH_RUNTIME
import Bar.bar
fun foo(s: String) {
<caret>bar(s)
}
object Bar {
@Deprecated(message = "", replaceWith = ReplaceWith("str.isEmpty()"))
fun bar(str: String): Boolean = str.isEmpty()
}