mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
11 lines
204 B
Kotlin
Vendored
11 lines
204 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
class TestClass {
|
|
inline operator fun <T> invoke(task: () -> T) = task()
|
|
}
|
|
|
|
fun box(): String {
|
|
val test = TestClass()
|
|
val ok = "OK"
|
|
|
|
val x = test { return ok }
|
|
} |