Files
kotlin/compiler/testData/codegen/box/reflection/enclosing/localClassInTopLevelFunction.kt
2019-11-19 11:00:09 +03:00

15 lines
241 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: 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"
}