be194c3460
#KT-8597 Fixed
18 lines
390 B
Kotlin
Vendored
18 lines
390 B
Kotlin
Vendored
// "Replace with 'Foo.execute(action)'" "true"
|
|
|
|
class Executor {
|
|
@Deprecated("Use Executor.execute(Runnable) instead.", ReplaceWith("Foo.execute(action)"))
|
|
operator fun invoke(action: () -> Unit) {}
|
|
|
|
fun execute(action: () -> Unit) {}
|
|
}
|
|
|
|
object Foo {
|
|
fun execute(action: () -> Unit) {}
|
|
}
|
|
|
|
fun usage(executor: Executor) {
|
|
<caret>executor {
|
|
// do something
|
|
}
|
|
} |