4a2f9a5123
They were accidentally fixed with `[FIR] Process all overridden members from intersection scopes` commit, which itself introduced incorrect behavior, which was properly fixed with ... commit. So KT-64081 started to appear again
25 lines
270 B
Kotlin
Vendored
25 lines
270 B
Kotlin
Vendored
interface A {
|
|
abstract fun foo()
|
|
|
|
}
|
|
|
|
interface B : A {
|
|
abstract fun bar()
|
|
|
|
}
|
|
|
|
interface C : A {
|
|
abstract fun baz()
|
|
|
|
}
|
|
|
|
fun test(param: B) {
|
|
when {
|
|
param is C -> { // BLOCK
|
|
param /*as C */.foo()
|
|
param.bar()
|
|
param /*as C */.baz()
|
|
}
|
|
}
|
|
}
|