import java.util.function.UnaryOperator fun f(x: UnaryOperator) { } fun test() { f({x -> x}) }