Files
kotlin-fork/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt
T
2020-04-28 07:34:56 +03:00

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"
}