Add a warning for a custom Enum.entries entry

^KT-53153
This commit is contained in:
Mikhail Zarechenskiy
2023-01-02 14:25:54 +01:00
committed by Space Team
parent 989fc886e1
commit c70a1b1884
14 changed files with 100 additions and 3 deletions
@@ -0,0 +1,10 @@
// !LANGUAGE: -EnumEntries
enum class E {
<!DEPRECATED_DECLARATION_OF_ENUM_ENTRY!>entries,<!> Entries;
fun foo() {
entries
E.entries
}
}