-
Notifications
You must be signed in to change notification settings - Fork 1
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
mend
/within
not working in an inline
context
#19
Comments
What happens if you change the return type of |
I see it was an error on my side:
doesn't change the error at all |
What happens if (just for diagnosis) you try something like this:
...or other variations? How much do you have to change to get it to compile (if you can at all)? |
wow, i was actually able to quite strongly simplify the example producing the same error, so that it leaves the context of wisteria: inline def simpleTest: Either[String, String] =
mend {
case e: Exception =>
Left(e.getMessage)
}.within {
abort(new Exception("oops"))
} once you remove |
It was straightforward enough to move it with the "transfer" button! |
.mend(???).within(???)
not working inside split
blockmend
/within
not working in an inline
context
The problem is that the transparent inline method, But inside an We could redefine the return type of We might be able to regenerate those type details in the In short, I'm not hopeful this can be fixed without some drastic changes. But I'll leave this open with the intention of investigating a bit more deeply. |
produces:
at
.within
The text was updated successfully, but these errors were encountered: