Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImport.kt
T
Roman Efremov 34d87465ac [Test] Add test for Enum.entries shadowing when property is imported
This is similar to KT-64488 but without context receivers.
Warning message "access ... from within the enum" is also incorrect
here.

^KT-64488
2024-02-27 11:22:35 +00:00

12 lines
162 B
Kotlin
Vendored

// !LANGUAGE: -EnumEntries -PrioritizedEnumEntries
// WITH_STDLIB
import MyEnum.entries
enum class MyEnum
val entries = "local str"
fun test() {
entries
}