mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
236 B
Kotlin
Vendored
15 lines
236 B
Kotlin
Vendored
open class SuperFoo {
|
|
public fun bar() {
|
|
if (this is Foo) {
|
|
baz()
|
|
}
|
|
}
|
|
|
|
public fun baz() {}
|
|
}
|
|
|
|
class Foo : SuperFoo()
|
|
|
|
// 0 INVOKEVIRTUAL SuperFoo.baz
|
|
// 1 CHECKCAST Foo
|
|
// 1 INVOKEVIRTUAL Foo.baz |