Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke.kt
T
Toshiaki Kameyama be194c3460 ReplaceWith: suggest for "invoke" extension
#KT-8597 Fixed
2020-10-23 15:46:49 +09:00

14 lines
327 B
Kotlin
Vendored

// "Replace with 'execute(action)'" "true"
class Executor {
@Deprecated("Use Executor.execute(Runnable) instead.", ReplaceWith("execute(action)"))
operator fun invoke(action: () -> Unit) {}
fun execute(action: () -> Unit) {}
}
fun usage(executor: Executor) {
<caret>executor {
// do something
}
}