blob: 9908ee0cab6c4de52fcd7a76241b56e05b4426eb [file]
// TARGET_BACKEND: JVM
fun box(): String =
object : A<Void, Void>() {
override fun f(vararg params: Void): Void? = null
}.execute()
abstract class A<P, R> {
protected abstract fun f(vararg params: P): R?
fun execute(vararg params: P): String =
if (f(*params) == null) "OK" else "Fail"
}