Files
kotlin-fork/compiler/testData/codegen/box/reflection/enclosing/localClassInTopLevelFunction.kt
T
2020-04-02 12:42:50 +03:00

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"
}