Replace deprecated symbol usage: replace imported object function correctly
#KT-33951 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
b2be1a53cf
commit
02c17378b1
+13
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user