mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
16 lines
427 B
Kotlin
Vendored
16 lines
427 B
Kotlin
Vendored
import kotlin.reflect.jvm.*
|
|
import kotlin.test.assertEquals
|
|
|
|
fun box(): String {
|
|
val f = J::foo
|
|
assertEquals(
|
|
listOf(J::class.java, IntArray::class.java, Array<Any>::class.java, Integer::class.java),
|
|
f.parameters.map { it.type.javaType }
|
|
)
|
|
assertEquals(String::class.java, f.returnType.javaType)
|
|
|
|
assertEquals("01A2", f.call(J(0), intArrayOf(1), arrayOf("A"), 2))
|
|
|
|
return "OK"
|
|
}
|