From 4e1bb9d8de06ad30c3f3ca84bc6c00810587a72d Mon Sep 17 00:00:00 2001 From: Joseph Cooper Date: Tue, 5 Oct 2021 18:05:29 +0100 Subject: [PATCH] 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. --- kotlin-result-coroutines/build.gradle.kts | 2 +- kotlin-result/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-result-coroutines/build.gradle.kts b/kotlin-result-coroutines/build.gradle.kts index debe6c1..0d32ab8 100644 --- a/kotlin-result-coroutines/build.gradle.kts +++ b/kotlin-result-coroutines/build.gradle.kts @@ -9,7 +9,7 @@ kotlin { sourceSets { all { languageSettings.apply { - useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts") + optIn("kotlin.contracts.ExperimentalContracts") } } diff --git a/kotlin-result/build.gradle.kts b/kotlin-result/build.gradle.kts index 8433f0a..4880260 100644 --- a/kotlin-result/build.gradle.kts +++ b/kotlin-result/build.gradle.kts @@ -17,7 +17,7 @@ kotlin { sourceSets { all { languageSettings.apply { - useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts") + optIn("kotlin.contracts.ExperimentalContracts") } }