Provide "toString" for reflection objects

This commit is contained in:
Alexander Udalov
2014-07-01 21:32:06 +04:00
parent c5d92cc03e
commit bc8bce7ca1
13 changed files with 248 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import kotlin.test.*
import kotlin.reflect.jvm.kotlinPackage
fun box(): String {
val p = javaClass<String>().kotlinPackage
if ("$p" != "package java.lang.String") return "Fail: $p"
return "OK"
}