Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/entries/entriesUnsupported.kt
T
Mikhail Glukhikh 565adf3075 K1: don't filter Enum.entries in tower to report error later
After this commit we:
- preserve Enum.entries synthetic property in tower even in case the bound feature is OFF
- report an error on Enum.entries call in specific checker if the feature is OFF
- give this synthetic property lower priority, no matter feature ON or OFF

#KT-55251 Fixed
2023-01-24 12:45:59 +00:00

12 lines
168 B
Kotlin
Vendored

// !LANGUAGE: -EnumEntries
// WITH_STDLIB
// ISSUE: KT-55251
enum class Foo {
BAR;
}
fun main() {
Foo.<!OPT_IN_USAGE_ERROR, UNSUPPORTED_FEATURE!>entries<!>
}