// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER fun foo(f : (T) -> T) : T = throw Exception() fun test() { val a : Int = foo(fun (x) = x) }