New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Arrow result continuation broken #2875
Comments
Hey @ulfryk, Thank you for the bug report, including reproducible examples 🙏 |
Hey @nomisRev, Checked other versions - 1.1.3
1.1.4-4c.3
|
@ulfryk thanks for letting us know |
This fix has been released |
Affected version:
1.1.2
Affected scope:
arrow.core.continuations
Kotlin version:
1.7.21
Using
result { … }
comprehension and binding invokations of suspended functions/methods inside causes unexpected behaviour. NestedResult<Result<X>>
values are returned in runtime - despite havingResult<X>
type in compile time.Bug affects
result { … }
andresult.eager { … }
.It does NOT affect
nullable { … }
/nullable.eager { … }
oreither { … }
/either.eager { … }
.Code to reproduce an issue:
Result of running above code:
The text was updated successfully, but these errors were encountered: