mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
16 lines
222 B
Kotlin
Vendored
16 lines
222 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
fun test(a: Any?) {
|
|
a as () -> Unit
|
|
Runnable(a).run()
|
|
}
|
|
|
|
fun box(): String {
|
|
var result = "Fail"
|
|
test {
|
|
result = "OK"
|
|
}
|
|
return result
|
|
}
|