Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/entries/genericEntriesPropertyClashOn.fir.kt
T
Mikhail Glukhikh 3ff2c7d6f7 K2: introduce custom Enum.entries migration checkers
Related to KT-56623, KT-56587
#KT-59344 Fixed
2023-08-31 13:29:02 +00:00

19 lines
283 B
Kotlin
Vendored

// !LANGUAGE: +EnumEntries -PrioritizedEnumEntries
// WITH_STDLIB
// FIR_DUMP
package pckg
enum class A {
;
companion object
}
val <T> T.entries: Int get() = 0
fun test() {
<!DEPRECATED_ACCESS_TO_ENUM_ENTRY_COMPANION_PROPERTY!>A.entries<!>
A.Companion.entries
}