Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/reflection/call/platformStatic.kt
T
Alexander Udalov e079b8f425 Support KCallable.call
#KT-2187 Fixed
2015-07-29 21:36:42 +03:00

18 lines
263 B
Kotlin
Vendored

import kotlin.platform.platformStatic as static
object Obj {
static fun foo() {}
}
class C {
companion object {
static fun bar() {}
}
}
fun box(): String {
(Obj::foo).call(Obj)
(C.Companion::bar).call(C.Companion)
return "OK"
}