mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
20 lines
344 B
Kotlin
Vendored
20 lines
344 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.full.*
|
|
import kotlin.reflect.jvm.*
|
|
|
|
open class TestBase {
|
|
fun id() = 0L
|
|
}
|
|
|
|
class TestChild : TestBase()
|
|
|
|
fun box(): String {
|
|
if (TestChild::class.memberFunctions.first { it.name == "id" }.javaMethod == null)
|
|
return "No method for TestChild.id()"
|
|
|
|
return "OK"
|
|
}
|