Files
kotlin-fork/compiler/testData/ir/irText/expressions/smartCastAside.fir.kt.txt
T
Dmitriy Novozhilov 4a2f9a5123 [FIR] Mute some tests back due to KT-64081
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
2023-12-08 15:19:55 +00:00

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