class Mocha() { operator fun invoke(f: (Int) -> String) {} } fun main() { val mocha = Mocha() val testing = mocha{ x: Int -> "hello world" } }