Files
kotlin-fork/compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt.txt
T
Vladimir Sukharev bae8b283c7 [IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00

10 lines
275 B
Kotlin
Vendored

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