mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Provide "toString" for reflection objects
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user