This is more of an FYI than a bug report for kotlin-result, although you might want to highlight this in the README.
I see with 2.0 you've switched to an inline value class. This will (I think) cause problems using kotlin-result with Retrofit, Ktor, SQLDelight (other libraries may also be affected, these are just the ones I'm aware of).
See for example, these issues which relate to the Kotlin stdlib.Result with those libraries, where the underlying cause seems to be that stdlib.Result is an inline value class.
This is more of an FYI than a bug report for kotlin-result, although you might want to highlight this in the README.
I see with 2.0 you've switched to an inline value class. This will (I think) cause problems using kotlin-result with Retrofit, Ktor, SQLDelight (other libraries may also be affected, these are just the ones I'm aware of).
See for example, these issues which relate to the Kotlin
stdlib.Resultwith those libraries, where the underlying cause seems to be thatstdlib.Resultis an inline value class.