3ff2c7d6f7
Related to KT-56623, KT-56587 #KT-59344 Fixed
29 lines
497 B
Kotlin
Vendored
29 lines
497 B
Kotlin
Vendored
// !LANGUAGE: -EnumEntries
|
|
// WITH_STDLIB
|
|
|
|
enum class A {
|
|
;
|
|
|
|
companion object {
|
|
val entries = 0
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
<!DEPRECATED_ACCESS_TO_ENUM_ENTRY_COMPANION_PROPERTY!>A.entries<!>
|
|
A.Companion.entries
|
|
|
|
with(A) {
|
|
entries
|
|
this.entries
|
|
<!UNRESOLVED_REFERENCE!>values<!>() // to be sure that we don't resolve into synthetic 'values'
|
|
}
|
|
|
|
with(A.Companion) {
|
|
entries
|
|
}
|
|
|
|
val aCompanion = A.Companion
|
|
aCompanion.entries
|
|
}
|