blob: 93141211e637f65cd29636d37a718531b876b84d [file]
// FILE: A.kt
fun interface I {
fun test(x: Int = 10, y: Int = 20) = process(x + y)
fun process(a: Int) : Int
}
// FILE: B.kt
fun box() : String {
val y: (Int) -> Int = { it * 2 }
val x = I(y)
if (x.test() != 60) return "FAIL"
return "OK"
}