Files
kotlin-fork/compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8against6/delegation/delegationToDefaultMethodInClass.kt
T

25 lines
325 B
Kotlin
Vendored

// WITH_REFLECT
// FULL_JDK
// FILE: 1.kt
interface Test {
fun test() {
}
}
// FILE: 2.kt
// JVM_TARGET: 1.8
class TestClass : Test {
}
fun box(): String {
try {
TestClass::class.java.getDeclaredMethod("test")
}
catch (e: NoSuchMethodException) {
return "fail"
}
return "OK"
}