mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
21 lines
411 B
Kotlin
Vendored
21 lines
411 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.*
|
|
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"
|
|
}
|