16 lines
253 B
Kotlin
Vendored
16 lines
253 B
Kotlin
Vendored
open class SuperFoo {
|
|
public fun bar(): String {
|
|
if (this is Foo) {
|
|
superFoo()
|
|
return baz()
|
|
}
|
|
return baz()
|
|
}
|
|
|
|
public fun baz() = "OK"
|
|
}
|
|
|
|
class Foo : SuperFoo() {
|
|
public fun superFoo() {}
|
|
}
|