interface Inv2 { } fun box(): String { val x: Inv2 = test() return "OK" } fun check(x: T, y: R, f: Function1): Inv2 { return TODO() } fun foo(): Function1 { return TODO() } fun test(): Inv2 { return check(x = "", y = 1, f = foo()) }