Migrate Experimental->RequiresOptIn in project sources

This commit is contained in:
Alexander Udalov
2020-03-05 01:24:31 +01:00
parent 795d6ab407
commit d668808b44
7 changed files with 11 additions and 11 deletions
@@ -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
View File
@@ -1,5 +1,5 @@
// !LANGUAGE: +NewInference
// !USE_EXPERIMENTAL: kotlin.Experimental
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
// WITH_RUNTIME
// ISSUE: KT-35684
@@ -1,4 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.Experimental
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
@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"
* API for broader use)
*/
@Experimental(level = Experimental.Level.ERROR)
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
annotation class TypeRefinement