mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
Delete the old ones in package kotlin.reflect.jvm because otherwise the code using those functions will become red in a lot less meaningful way (overload resolution ambiguity) than if they're deleted (unresolved import) Based on the work originally done by @dnpetrov #KT-8380 Fixed
21 lines
473 B
Kotlin
Vendored
21 lines
473 B
Kotlin
Vendored
// NO_KOTLIN_REFLECT
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun check(name: String, c: Class<*>) {
|
|
assertEquals(name, c.simpleName)
|
|
}
|
|
|
|
fun box(): String {
|
|
check("boolean", Boolean::class.java)
|
|
check("byte", Byte::class.java)
|
|
check("char", Char::class.java)
|
|
check("short", Short::class.java)
|
|
check("int", Int::class.java)
|
|
check("float", Float::class.java)
|
|
check("long", Long::class.java)
|
|
check("double", Double::class.java)
|
|
|
|
return "OK"
|
|
}
|