13 lines
255 B
Kotlin
Vendored
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) {}
|