mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
We want the inspection to test new 1.9 behaviour, i.e. the case when EnumEntries doesn't have opt-in, but has @WasExperimental. Because of that `-opt-in` flag was removed from test data. Current LV in idea is 1.8, so we also have to override API_VERSION to 1.9. Also, API_VERSION=1.8 set to opt-in tests to not fail when idea LV becomes 1.9. ^KTIJ-25447 GitOrigin-RevId: 3997eb88957ba554d405a08fff443de04b5f987a
9 lines
187 B
Kotlin
9 lines
187 B
Kotlin
// COMPILER_ARGUMENTS: -XXLanguage:+EnumEntries
|
|
// API_VERSION: 1.9
|
|
// WITH_STDLIB
|
|
enum class EnumClass
|
|
|
|
@ExperimentalStdlibApi
|
|
fun foo() {
|
|
for (el in EnumClass.values<caret>()) { }
|
|
} |