9a2eff6487
https://youtrack.jetbrains.com/issue/KT-60264/K2-while-loop-body-block-sometimes-replaced-with-single-expression Merge-request: KT-MR-12035 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
13 lines
187 B
Kotlin
Vendored
13 lines
187 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
fun interface MyRunnable {
|
|
fun run()
|
|
}
|
|
|
|
fun test(a: Any, r: MyRunnable) {
|
|
if (a is MyRunnable) {
|
|
foo({}, r, a)
|
|
}
|
|
}
|
|
|
|
fun foo(vararg rs: MyRunnable) {}
|