Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/castFromAny.kt
T
2020-01-22 00:12:03 +03:00

12 lines
234 B
Kotlin
Vendored

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