mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
26 lines
405 B
Kotlin
Vendored
26 lines
405 B
Kotlin
Vendored
// FILE: Simple.java
|
|
|
|
public interface Simple {
|
|
default String test() {
|
|
return "O";
|
|
}
|
|
|
|
static String testStatic() {
|
|
return "K";
|
|
}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
// JVM_TARGET: 1.8
|
|
interface KSimple : Simple {}
|
|
|
|
class TestClass : KSimple {
|
|
override fun test(): String {
|
|
return super.test()
|
|
}
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
return TestClass().test() + Simple.testStatic()
|
|
} |