From 570189e83389e4e1c717fa60c377496c3bf71f7d Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 17 Feb 2022 18:24:25 +0300 Subject: [PATCH] Mark deprecated 'useExperimental' with IDEAPluginsCompatibilityAPI --- .../kotlin/cli/common/arguments/CommonCompilerArguments.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt index fae302574ef..7d7a84f0dcd 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt @@ -163,6 +163,12 @@ abstract class CommonCompilerArguments : CommonToolArguments() { valueDescription = "", description = "Enable, but don't propagate usages of experimental API for marker annotation with the given fully qualified name" ) + @IDEAPluginsCompatibilityAPI( + IDEAPlatforms._212, // maybe 211 AS used it too + IDEAPlatforms._213, + message = "Please migrate to -opt-in", + plugins = "Android" + ) var useExperimental: Array? by FreezableVar(null) @Argument(