You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val oldStyle =
for
_ <- printLine("Hi")
_ <- ZIO.fail("Error!")
yield ()
into
val directStyle =
defer {
printLine("Hi").run
ZIO.fail("Error!").run
}
and got this error message:
missing arguments for method apply in trait deferCall
defer {
Is there a fundamental reason why we cannot return ZIOs with a Nothing result inside defer blocks?
If so, is there a way we could provide better error messages in this situation?
There are some great custom compilation error messages in this library, so I was surprised when I hit this one.
It took me a while to figure out what was actually causing the problem.
The text was updated successfully, but these errors were encountered:
I was converting some code:
into
and got this error message:
Is there a fundamental reason why we cannot return
ZIO
s with aNothing
result insidedefer
blocks?If so, is there a way we could provide better error messages in this situation?
There are some great custom compilation error messages in this library, so I was surprised when I hit this one.
It took me a while to figure out what was actually causing the problem.
The text was updated successfully, but these errors were encountered: