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,7 @@
open class K
fun box(): String {
val f = J::value
val a = J()
return if (f.get(a) == 42) "OK" else "Fail: ${f[a]}"
}