385bff3be1
This commit fixes all places that relied on the contract described in the previous commit and also updates corresponding tests ^KT-63738
16 lines
237 B
Kotlin
Vendored
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
|