From 26e4e74853c8fec2a733e0754ad01559aa1357b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Sat, 27 Jun 2026 18:16:35 +0200 Subject: [PATCH] upgrade: Arrow 2.2.3 --- .../compat-arrow/src/commonMain/kotlin/coroutines/Resource.kt | 3 +++ gradle/libs.versions.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compat/compat-arrow/src/commonMain/kotlin/coroutines/Resource.kt b/compat/compat-arrow/src/commonMain/kotlin/coroutines/Resource.kt index e887628..a2432a4 100644 --- a/compat/compat-arrow/src/commonMain/kotlin/coroutines/Resource.kt +++ b/compat/compat-arrow/src/commonMain/kotlin/coroutines/Resource.kt @@ -16,6 +16,7 @@ package opensavvy.prepared.compat.arrow.coroutines +import arrow.AutoCloseImplementation import arrow.fx.coroutines.ExitCase import arrow.fx.coroutines.ExitCase.Companion.ExitCase import arrow.fx.coroutines.Resource @@ -39,6 +40,7 @@ import opensavvy.prepared.suite.* * - The [install] functions allows binding a resource directly within a test. * - The [asPrepared] function converts a [Resource] into a [Prepared] value, Prepared's equivalent concept. */ +@OptIn(AutoCloseImplementation::class) @ResourceDSL interface TestResourceScope : ResourceScope, TestDsl @@ -197,6 +199,7 @@ suspend fun TestDsl.install( resource.bind() } +@OptIn(AutoCloseImplementation::class) private class TestResourceScopeImpl( private val test: TestDsl, ) : TestResourceScope, ResourceScope, TestDsl by test { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 54aef62..b17d4a0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ # List of dependencies of the project [versions] -arrow = "2.2.1.1" # https://github.com/arrow-kt/arrow/releases +arrow = "2.2.3" # https://github.com/arrow-kt/arrow/releases kotlinx-coroutines = "1.10.2" # https://github.com/Kotlin/kotlinx.coroutines/releases -- 2.51.2