e6f4d6e6fa
^KT-65406
20 lines
295 B
Kotlin
Vendored
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 */])
|
|
}
|
|
}
|
|
}
|
|
|