From f86e990562e1e2014c4aef2280303217ae88733b Mon Sep 17 00:00:00 2001 From: Roman Efremov Date: Mon, 5 Jun 2023 11:34:43 +0200 Subject: [PATCH] [tests] Bring enumFromStdlib test into conformity with other inspection tests Other tests set API_VERSION 1.9 instead of opt-in, but enumFromStdlib don't, because added later in kt-master. ^KTIJ-23369 GitOrigin-RevId: 9f522ede8f2da91eeeaea9965ebfadd0a4cf7b04 --- .../inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt | 3 ++- .../enumValuesSoftDeprecate/enumFromStdlib.kt.after | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt index 0f29658b8575..b928c3af6288 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt @@ -1,4 +1,5 @@ -// COMPILER_ARGUMENTS: -XXLanguage:+EnumEntries -opt-in=kotlin.ExperimentalStdlibApi +// COMPILER_ARGUMENTS: -XXLanguage:+EnumEntries +// API_VERSION: 1.9 // WITH_STDLIB fun foo() { AnnotationTarget.values() diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt.after index b35f35124883..573d5966802c 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/enumFromStdlib.kt.after @@ -1,4 +1,5 @@ -// COMPILER_ARGUMENTS: -XXLanguage:+EnumEntries -opt-in=kotlin.ExperimentalStdlibApi +// COMPILER_ARGUMENTS: -XXLanguage:+EnumEntries +// API_VERSION: 1.9 // WITH_STDLIB fun foo() { AnnotationTarget.entries