Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/importedObjectFunction.kt
T
2020-04-29 20:19:41 +07:00

21 lines
403 B
Kotlin
Vendored

// "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()
}