Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt.txt
T
2024-02-16 10:19:38 +00:00

20 lines
295 B
Kotlin
Vendored

fun interface MyRunnable {
abstract fun run()
}
fun foo(vararg rs: MyRunnable) {
}
fun test(a: Any, r: MyRunnable) {
when {
a is MyRunnable -> { // BLOCK
foo(rs = [local fun <anonymous>() {
return Unit
}
/*-> MyRunnable */, r, a /*as MyRunnable */])
}
}
}