Files
kotlin/compiler/testData/codegen/box/reflection/mapping/methodsFromSuperInterface.kt
2019-01-26 08:26:49 +01:00

29 lines
479 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
package test
import kotlin.reflect.jvm.javaMethod
import kotlin.test.assertEquals
interface A1 {
fun a1()
}
interface A2 {
fun a2()
}
interface B1 : A1
interface B2 : A1, A2
interface C : B2
abstract class D : B1, C
fun box(): String {
assertEquals("public abstract void test.A1.a1()", D::a1.javaMethod!!.toString())
assertEquals("public abstract void test.A2.a2()", D::a2.javaMethod!!.toString())
return "OK"
}