mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
28 lines
368 B
Kotlin
Vendored
28 lines
368 B
Kotlin
Vendored
// !API_VERSION: 1.3
|
|
// !JVM_DEFAULT_MODE: enable
|
|
// JVM_TARGET: 1.8
|
|
// WITH_RUNTIME
|
|
|
|
interface Test {
|
|
@JvmDefault
|
|
fun test(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
interface Test2 : Test {
|
|
@JvmDefault
|
|
override fun test(): String {
|
|
return super.test()
|
|
}
|
|
}
|
|
|
|
|
|
class TestClass : Test2 {
|
|
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
return TestClass().test()
|
|
} |