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) {
}
