Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.fir.kt.txt
T
2020-11-26 00:15:13 +03:00

17 lines
267 B
Plaintext
Vendored

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