Files
kotlin-fork/compiler/testData/codegen/bytecodeText/falseSmartCast.kt
T
Dmitriy Novozhilov 385bff3be1 [FIR] Update all required places according to changed overridden processing contract
This commit fixes all places that relied on the contract described in
  the previous commit and also updates corresponding tests

^KT-63738
2023-12-08 15:19:55 +00:00

16 lines
237 B
Kotlin
Vendored

open class SuperFoo {
public fun bar() {
if (this is Foo) {
baz()
}
}
public fun baz() {}
}
class Foo : SuperFoo()
// 1 INVOKEVIRTUAL SuperFoo.baz
// 0 CHECKCAST Foo
// 0 INVOKEVIRTUAL Foo.baz