1071919706
Also remove any mentions of NewInference, and rename some tests.
17 lines
258 B
Kotlin
Vendored
17 lines
258 B
Kotlin
Vendored
fun interface MyRunnable {
|
|
fun run()
|
|
}
|
|
|
|
fun box(): String {
|
|
var result = "failed"
|
|
val r = MyRunnable { result += "K" }
|
|
foo({ result = "O" }, r)
|
|
return result
|
|
}
|
|
|
|
fun foo(vararg rs: MyRunnable) {
|
|
for (r in rs) {
|
|
r.run()
|
|
}
|
|
}
|