mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
15 lines
374 B
Kotlin
15 lines
374 B
Kotlin
class Klass
|
|
|
|
fun box(): String {
|
|
val x = Klass::class
|
|
if (x.simpleName != "Klass") return "Fail x: ${x.simpleName}"
|
|
|
|
val y = java.util.Date::class
|
|
if (y.simpleName != "Date") return "Fail y: ${y.simpleName}"
|
|
|
|
val z = kotlin.jvm.internal.KotlinSyntheticClass.Kind::class
|
|
if (z.simpleName != "Kind") return "Fail z: ${z.simpleName}"
|
|
|
|
return "OK"
|
|
}
|