mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
28 lines
362 B
Kotlin
Vendored
28 lines
362 B
Kotlin
Vendored
// !API_VERSION: 1.3
|
|
// !ENABLE_JVM_DEFAULT
|
|
// 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()
|
|
} |