Files
kotlin-fork/compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt.txt
T
2020-11-26 00:14:55 +03:00

11 lines
315 B
Plaintext
Vendored

fun test(receiver: Any?, fn: @ExtensionFunctionType Function3<Any, Int, String, Unit>): Unit? {
return { // BLOCK
val tmp0_safe_receiver: Any? = receiver
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> fn.invoke(p1 = tmp0_safe_receiver, p2 = 42, p3 = "Hello")
}
}
}