02b5fed389
It can be reported not only from within the enum, but also from top-level functions. Add separate diagnostic for such cases. ^KT-64488
12 lines
206 B
Kotlin
Vendored
12 lines
206 B
Kotlin
Vendored
// !LANGUAGE: -EnumEntries -PrioritizedEnumEntries
|
|
// WITH_STDLIB
|
|
import MyEnum.entries
|
|
|
|
enum class MyEnum
|
|
|
|
val entries = "local str"
|
|
|
|
fun test() {
|
|
<!DEPRECATED_ACCESS_TO_ENTRIES_PROPERTY!>entries<!>
|
|
}
|