Use -opt-in instead of -Xopt-in in comments and scripts
This commit is contained in:
@@ -12,7 +12,7 @@ import kotlin.annotation.AnnotationTarget.*
|
||||
*
|
||||
* Any usage of a declaration annotated with `@ExperimentalStdlibApi` must be accepted either by
|
||||
* annotating that usage with the [OptIn] annotation, e.g. `@OptIn(ExperimentalStdlibApi::class)`,
|
||||
* or by using the compiler argument `-Xopt-in=kotlin.ExperimentalStdlibApi`.
|
||||
* or by using the compiler argument `-opt-in=kotlin.ExperimentalStdlibApi`.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Experimental(level = Experimental.Level.ERROR)
|
||||
|
||||
@@ -14,7 +14,7 @@ import kotlin.internal.RequireKotlinVersionKind
|
||||
*
|
||||
* Any usage of a declaration annotated with `@ExperimentalMultiplatform` must be accepted either by
|
||||
* annotating that usage with the [OptIn] annotation, e.g. `@OptIn(ExperimentalMultiplatform::class)`,
|
||||
* or by using the compiler argument `-Xopt-in=kotlin.ExperimentalMultiplatform`.
|
||||
* or by using the compiler argument `-opt-in=kotlin.ExperimentalMultiplatform`.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Experimental
|
||||
|
||||
@@ -18,7 +18,7 @@ import kotlin.reflect.KClass
|
||||
* Call sites of any declaration annotated with that marker should opt in to the API either by using [OptIn],
|
||||
* or by being annotated with that marker themselves, effectively causing further propagation of the opt-in requirement.
|
||||
*
|
||||
* This class requires opt-in itself and can only be used with the compiler argument `-Xopt-in=kotlin.RequiresOptIn`.
|
||||
* This class requires opt-in itself and can only be used with the compiler argument `-opt-in=kotlin.RequiresOptIn`.
|
||||
*
|
||||
* @property message message to be reported on usages of API without an explicit opt-in, or empty string for the default message.
|
||||
* The default message is: "This declaration is experimental and its usage should be marked with 'Marker'
|
||||
@@ -50,7 +50,7 @@ public annotation class RequiresOptIn(
|
||||
* Allows to use the API denoted by the given markers in the annotated file, declaration, or expression.
|
||||
* If a declaration is annotated with [OptIn], its usages are **not** required to opt in to that API.
|
||||
*
|
||||
* This class requires opt-in itself and can only be used with the compiler argument `-Xopt-in=kotlin.RequiresOptIn`.
|
||||
* This class requires opt-in itself and can only be used with the compiler argument `-opt-in=kotlin.RequiresOptIn`.
|
||||
*/
|
||||
@Target(
|
||||
CLASS, PROPERTY, LOCAL_VARIABLE, VALUE_PARAMETER, CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, EXPRESSION, FILE, TYPEALIAS
|
||||
|
||||
@@ -14,7 +14,7 @@ import kotlin.internal.InlineOnly
|
||||
*
|
||||
* Any usage of a declaration annotated with `@ExperimentalContracts` must be accepted either by
|
||||
* annotating that usage with the [OptIn] annotation, e.g. `@OptIn(ExperimentalContracts::class)`,
|
||||
* or by using the compiler argument `-Xopt-in=kotlin.contracts.ExperimentalContracts`.
|
||||
* or by using the compiler argument `-opt-in=kotlin.contracts.ExperimentalContracts`.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
|
||||
@@ -10,7 +10,7 @@ package kotlin.experimental
|
||||
*
|
||||
* Any usage of a declaration annotated with `@ExperimentalTypeInference` must be accepted either by
|
||||
* annotating that usage with the [OptIn] annotation, e.g. `@OptIn(ExperimentalTypeInference::class)`,
|
||||
* or by using the compiler argument `-Xopt-in=kotlin.experimental.ExperimentalTypeInference`.
|
||||
* or by using the compiler argument `-opt-in=kotlin.experimental.ExperimentalTypeInference`.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Experimental(level = Experimental.Level.ERROR)
|
||||
|
||||
@@ -16,7 +16,7 @@ import kotlin.annotation.AnnotationTarget.*
|
||||
*
|
||||
* Any usage of a declaration annotated with `@ExperimentalTime` must be accepted either by
|
||||
* annotating that usage with the [OptIn] annotation, e.g. `@OptIn(ExperimentalTime::class)`,
|
||||
* or by using the compiler argument `-Xopt-in=kotlin.time.ExperimentalTime`.
|
||||
* or by using the compiler argument `-opt-in=kotlin.time.ExperimentalTime`.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Experimental(level = Experimental.Level.ERROR)
|
||||
|
||||
Reference in New Issue
Block a user