Replace usages of useExperimentalAnnotation

Fix warnings on kotlin-result/build.gradle.kts and
kotlin-result-coroutines/build.gradle.kts caused by using deprecated
useExperimentalAnnotation function.
This commit is contained in:
Joseph Cooper 2021-10-05 18:05:29 +01:00 committed by Michael Bull
parent b8d4109eee
commit 4e1bb9d8de
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ kotlin {
sourceSets {
all {
languageSettings.apply {
useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
optIn("kotlin.contracts.ExperimentalContracts")
}
}

View File

@ -17,7 +17,7 @@ kotlin {
sourceSets {
all {
languageSettings.apply {
useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
optIn("kotlin.contracts.ExperimentalContracts")
}
}