Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt3850.kt
T
2023-12-26 10:18:19 +00:00

13 lines
360 B
Kotlin
Vendored

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