Support KCallable.call

#KT-2187 Fixed
This commit is contained in:
Alexander Udalov
2015-07-16 21:45:28 +03:00
parent ffe32e0b6d
commit e079b8f425
22 changed files with 462 additions and 3 deletions
@@ -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"
}