blob: 8fa1a21446ef3e7c0cd3af8fc072b41d1720c4e7 [file]
// IGNORE_BACKEND: NATIVE
// FILE: 1.kt
package test
inline fun <reified T> makeRunnable(noinline lambda: ()->Unit) : Runnable {
return Runnable(lambda)
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = "fail"
makeRunnable<String> { result = "OK" }.run()
return result
}