Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/entries/entriesPropertyWithJvmStaticClash.kt
T
2023-01-04 13:17:10 +00:00

22 lines
502 B
Kotlin
Vendored

// !LANGUAGE: -EnumEntries
// WITH_STDLIB
enum class A {
;
companion object {
@JvmStatic
val entries = 0
}
}
fun test() {
A.<!DEBUG_INFO_CALL("fqName: A.Companion.entries; typeCall: variable"), DEPRECATED_ACCESS_TO_ENUM_ENTRY_COMPANION_PROPERTY!>entries<!>
with(A) {
<!DEBUG_INFO_CALL("fqName: A.Companion.entries; typeCall: variable")!>entries<!>
}
A.Companion.<!DEBUG_INFO_CALL("fqName: A.Companion.entries; typeCall: variable")!>entries<!>
}