Additional tests on reflection for Java methods

This commit is contained in:
Alexander Udalov
2015-07-07 23:17:27 +03:00
parent 5962b79126
commit 2492977274
7 changed files with 73 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
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"
}