Initial support of @JvmDefault
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
// !API_VERSION: 1.3
|
||||
// JVM_TARGET: 1.8
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.JVM8_TARGET_WITH_DEFAULTS
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface Test<T> {
|
||||
@kotlin.annotations.JvmDefault
|
||||
fun test(p: T): T {
|
||||
return p
|
||||
}
|
||||
}
|
||||
|
||||
interface Test2: Test<String> {
|
||||
@kotlin.annotations.JvmDefault
|
||||
override fun test(p: String): String {
|
||||
return p + "K"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user