mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
30 lines
509 B
Kotlin
Vendored
30 lines
509 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// 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"
|
|
}
|