// ISSUE: KT-50646 class Inv fun foo(c: Inv, f: () -> T) {} fun foo(c: Inv, v: T) {} fun test(x: Inv, v: T) { foo(x) { v } }