Support KCallable.call
#KT-2187 Fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user