38fd2b9ed6
In JDK 9, Class.simpleName changed behavior for local/anonymous Kotlin classes (see KT-23072), this is why we now check for both variants of the name in tests. Also, the format of annotation arguments changed a little, where float parameters no longer have the trailing "f", and class literals are rendered with ".class" at the end
15 lines
237 B
Kotlin
Vendored
15 lines
237 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_REFLECT
|
|
// KT-4234
|
|
|
|
fun box(): String {
|
|
class C
|
|
|
|
val name = C::class.java.getSimpleName()
|
|
if (name != "box\$C" && name != "C") return "Fail: $name"
|
|
|
|
return "OK"
|
|
}
|