1071919706
Also remove any mentions of NewInference, and rename some tests.
17 lines
218 B
Kotlin
Vendored
17 lines
218 B
Kotlin
Vendored
fun interface KRunnable {
|
|
fun invoke()
|
|
}
|
|
|
|
fun test(a: Any?) {
|
|
a as () -> Unit
|
|
KRunnable(a).invoke()
|
|
}
|
|
|
|
fun box(): String {
|
|
var result = "Fail"
|
|
test {
|
|
result = "OK"
|
|
}
|
|
return result
|
|
}
|