Migrate Experimental->RequiresOptIn in project sources
This commit is contained in:
@@ -41,9 +41,9 @@ fun buildConfiguration(environment: KotlinCoreEnvironment, moduleName: String):
|
||||
),
|
||||
analysisFlags = mapOf(
|
||||
AnalysisFlags.useExperimental to listOf(
|
||||
"kotlin.RequiresOptIn",
|
||||
"kotlin.contracts.ExperimentalContracts",
|
||||
"kotlin.Experimental",
|
||||
"kotlin.ExperimentalMultiplatform"
|
||||
"kotlin.ExperimentalMultiplatform",
|
||||
),
|
||||
AnalysisFlags.allowResultReturnType to true
|
||||
)
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
package org.jetbrains.kotlin.fir
|
||||
|
||||
@Experimental(level = Experimental.Level.ERROR)
|
||||
annotation class PrivateForInline
|
||||
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
||||
annotation class PrivateForInline
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
package org.jetbrains.kotlin.fir.resolve.dfa
|
||||
|
||||
@Experimental
|
||||
annotation class DfaInternals
|
||||
@RequiresOptIn
|
||||
annotation class DfaInternals
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
package org.jetbrains.kotlin.fir
|
||||
|
||||
@Experimental(level = Experimental.Level.ERROR)
|
||||
annotation class FirImplementationDetail
|
||||
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
||||
annotation class FirImplementationDetail
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// !USE_EXPERIMENTAL: kotlin.Experimental
|
||||
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
||||
// WITH_RUNTIME
|
||||
|
||||
// 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
|
||||
|
||||
@file:OptIn(ExperimentalTypeInference::class)
|
||||
|
||||
Reference in New Issue
Block a user