Files
vladislav.grechko 54858c2118 [FIR] Fix naming of local classes when serializing metadata
^KT-63655: Fixed
^KT-63901: Fixed
^KT-63988: Fixed
2024-02-07 12:30:50 +00:00

12 lines
328 B
Kotlin
Vendored

// !LANGUAGE: -PrivateInFileEffectiveVisibility
// In light analysis mode, anonymous object type is approximated to the supertype, so `fy` is unresolved.
// IGNORE_LIGHT_ANALYSIS
private class One {
val a1 = arrayOf(
object { val fy = "text"}
)
}
fun box() = if (One().a1[0].fy == "text") "OK" else "fail"