b454fcc1e0
This is needed to avoid clashes between different dumps from different handlers
19 lines
294 B
Kotlin
Vendored
19 lines
294 B
Kotlin
Vendored
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) {
|
|
}
|