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

20 lines
296 B
Plaintext
Vendored

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