Replace deprecated symbol usage: do not add 'this' receiver for imported object function
#KT-26361 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
9d27ba5b59
commit
bcefee0105
@@ -0,0 +1,21 @@
|
||||
// "Replace with 'stopKoin()'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
package com.example.pkg
|
||||
|
||||
import com.example.pkg.StandAloneContext.closeKoin
|
||||
|
||||
object StandAloneContext {
|
||||
@Deprecated(
|
||||
"Renamed, use stopKoin() instead.",
|
||||
ReplaceWith("stopKoin()", "com.example.pkg.StandAloneContext.stopKoin")
|
||||
)
|
||||
fun closeKoin() = stopKoin()
|
||||
|
||||
fun stopKoin() {}
|
||||
}
|
||||
|
||||
|
||||
fun koin() {
|
||||
<caret>closeKoin()
|
||||
}
|
||||
Reference in New Issue
Block a user