mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
18 lines
355 B
Kotlin
Vendored
18 lines
355 B
Kotlin
Vendored
import kotlin.reflect.KFunction
|
|
|
|
// Initiate descriptor computation in reflection to ensure that nothing fails
|
|
fun test(f: KFunction<*>) {
|
|
f.parameters
|
|
}
|
|
|
|
fun box(): String {
|
|
test(J::simple)
|
|
test(J::objectTypes)
|
|
test(J::primitives)
|
|
test(J::primitiveArrays)
|
|
test(J::multiDimensionalArrays)
|
|
test(J::wildcards)
|
|
|
|
return "OK"
|
|
}
|