mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
24 lines
373 B
Kotlin
Vendored
24 lines
373 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
|
|
class TestClass : Simple {
|
|
override fun test(): String {
|
|
return super.test()
|
|
}
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
return TestClass().test() + Simple.testStatic()
|
|
} |