a8e2893494
This works in many cases, however, it is incomplete since there are cases where classes are extracted to top-level and therefore reparented. Therefore, we lose the information about the function class are nested inside.
14 lines
211 B
Kotlin
Vendored
14 lines
211 B
Kotlin
Vendored
// 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"
|
|
}
|