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
@@ -0,0 +1,10 @@
package test.foo.bar
import kotlin.test.*
import kotlin.reflect.jvm.kotlinPackage
fun box(): String {
val p = Class.forName("test.foo.bar.BarPackage").kotlinPackage
if ("$p" != "package test.foo.bar") return "Fail: $p"
return "OK"
}