fun testInvoke() { operator fun Nothing.invoke() = this todo()() } fun testInvokeWithLambda() { operator fun Nothing.invoke(i: Int, f: () -> Int) = f todo()(1){ 42 } } fun todo() = throw Exception()