K2: reproduce strange "smartcast aside" behavior related to KT-62544 fix

This commit is contained in:
Mikhail Glukhikh
2023-10-27 14:42:08 +02:00
committed by Space Team
parent 9c146adc3a
commit 1ef0f9e944
16 changed files with 337 additions and 0 deletions
@@ -0,0 +1,19 @@
interface A {
fun foo()
}
interface B : A {
fun bar()
}
interface C : A {
fun baz()
}
fun test(param: B) {
if (param is C) {
param.foo()
param.bar()
param.baz()
}
}