Migrate Experimental->RequiresOptIn in project sources
This commit is contained in:
@@ -41,9 +41,9 @@ fun buildConfiguration(environment: KotlinCoreEnvironment, moduleName: String):
|
|||||||
),
|
),
|
||||||
analysisFlags = mapOf(
|
analysisFlags = mapOf(
|
||||||
AnalysisFlags.useExperimental to listOf(
|
AnalysisFlags.useExperimental to listOf(
|
||||||
|
"kotlin.RequiresOptIn",
|
||||||
"kotlin.contracts.ExperimentalContracts",
|
"kotlin.contracts.ExperimentalContracts",
|
||||||
"kotlin.Experimental",
|
"kotlin.ExperimentalMultiplatform",
|
||||||
"kotlin.ExperimentalMultiplatform"
|
|
||||||
),
|
),
|
||||||
AnalysisFlags.allowResultReturnType to true
|
AnalysisFlags.allowResultReturnType to true
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.fir
|
package org.jetbrains.kotlin.fir
|
||||||
|
|
||||||
@Experimental(level = Experimental.Level.ERROR)
|
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
||||||
annotation class PrivateForInline
|
annotation class PrivateForInline
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.fir.resolve.dfa
|
package org.jetbrains.kotlin.fir.resolve.dfa
|
||||||
|
|
||||||
@Experimental
|
@RequiresOptIn
|
||||||
annotation class DfaInternals
|
annotation class DfaInternals
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.fir
|
package org.jetbrains.kotlin.fir
|
||||||
|
|
||||||
@Experimental(level = Experimental.Level.ERROR)
|
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
||||||
annotation class FirImplementationDetail
|
annotation class FirImplementationDetail
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
// !LANGUAGE: +NewInference
|
// !LANGUAGE: +NewInference
|
||||||
// !USE_EXPERIMENTAL: kotlin.Experimental
|
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
// ISSUE: KT-35684
|
// ISSUE: KT-35684
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// !USE_EXPERIMENTAL: kotlin.Experimental
|
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
||||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||||
|
|
||||||
@file:OptIn(ExperimentalTypeInference::class)
|
@file:OptIn(ExperimentalTypeInference::class)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ package org.jetbrains.kotlin.types.refinement
|
|||||||
* either finding some other API or removing @TypeRefinement (and thus "publishing"
|
* either finding some other API or removing @TypeRefinement (and thus "publishing"
|
||||||
* API for broader use)
|
* API for broader use)
|
||||||
*/
|
*/
|
||||||
@Experimental(level = Experimental.Level.ERROR)
|
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
|
||||||
annotation class TypeRefinement
|
annotation class TypeRefinement
|
||||||
|
|||||||
Reference in New Issue
Block a user