blob: 44c47fcbba954c20a058a0ae725c9c98d7d86266 [file]
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS, NATIVE
class TestJava(r : Runnable) : Runnable by r {}
class TestRunnable() : Runnable {
public override fun run() = System.out.println("foobar")
}
fun box() : String {
var del = TestJava(TestRunnable())
del.run()
if (del !is Runnable)
return "Fail #1"
return "OK"
}