Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt
T
2020-06-02 23:53:47 +03:00

13 lines
255 B
Kotlin
Vendored

// !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument
fun interface MyRunnable {
fun run()
}
fun test(a: Any, r: MyRunnable) {
if (a is MyRunnable) {
foo({}, r, a)
}
}
fun foo(vararg rs: MyRunnable) {}