565adf3075
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
12 lines
168 B
Kotlin
Vendored
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<!>
|
|
}
|