905e1dcd3b
Related to KT-48872
31 lines
394 B
Kotlin
Vendored
31 lines
394 B
Kotlin
Vendored
// !LANGUAGE: +EnumEntries +PrioritizedEnumEntries
|
|
// WITH_STDLIB
|
|
// FIR_DUMP
|
|
|
|
package pckg
|
|
|
|
enum class A {
|
|
;
|
|
|
|
companion object
|
|
}
|
|
|
|
val A.Companion.entries: Int get() = 0
|
|
|
|
fun test() {
|
|
A.entries
|
|
A.Companion.entries
|
|
|
|
with(A) {
|
|
this.entries
|
|
entries
|
|
}
|
|
|
|
with(A.Companion) {
|
|
entries
|
|
}
|
|
|
|
val aCompanion = A.Companion
|
|
aCompanion.entries
|
|
}
|