15 lines
192 B
Kotlin
Vendored
15 lines
192 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
fun test(a: Any?) {
|
|
a as () -> Unit
|
|
Runnable(a).run()
|
|
}
|
|
|
|
fun box(): String {
|
|
var result = "Fail"
|
|
test {
|
|
result = "OK"
|
|
}
|
|
return result
|
|
}
|