Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/reflection/call/jvmStatic.kt
T
Alexander Udalov 8e77e16bbd Remove leftovers of platformName and platformStatic in test data
Drop unnecessary imports, rename some tests
2016-03-02 16:47:04 +03:00

18 lines
310 B
Kotlin
Vendored

object Obj {
@JvmStatic
fun foo() {}
}
class C {
companion object {
@JvmStatic
fun bar() {}
}
}
fun box(): String {
(Obj::class.members.single { it.name == "foo" }).call(Obj)
(C.Companion::class.members.single { it.name == "bar" }).call(C.Companion)
return "OK"
}