Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsicOn.kt
T
Mikhail Glukhikh 70899d492d K2: reproduce KT-57954 and reorganize tests around enum entries warnings
In particular, here we add FIR_DUMP to all enum entries tests with
some deprecation diagnostics and the feature on, and remove all txt-files
2023-06-21 13:08:00 +00:00

13 lines
210 B
Kotlin
Vendored

// !LANGUAGE: +EnumEntries
// WITH_STDLIB
// FIR_DUMP
enum class E {
<!DEPRECATED_DECLARATION_OF_ENUM_ENTRY!>entries,<!> Entries;
fun foo() {
entries.ordinal
E.entries.ordinal
}
}