20 lines
343 B
Kotlin
Vendored
20 lines
343 B
Kotlin
Vendored
// SKIP_JDK6
|
|
// TARGET_BACKEND: JVM
|
|
// FILE: Test.kt
|
|
open class KFoo {
|
|
fun foo(): String {
|
|
if (this is KFooBar) return bar
|
|
throw AssertionError()
|
|
}
|
|
}
|
|
|
|
class KFooBar : KFoo(), JBar
|
|
|
|
fun box(): String = KFooBar().foo()
|
|
|
|
// FILE: JBar.java
|
|
public interface JBar {
|
|
default String getBar() {
|
|
return "OK";
|
|
}
|
|
} |