Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/castFromAny.kt
T

13 lines
251 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
fun interface KRunnable {
fun invoke()
}
fun test(a: Any?) {
a as () -> Unit
KRunnable(a).invoke()
}