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
Yes, summonInline should be implemented directly in the compiler. It should share as much logic as possible with summonFrom. Maybe we can even turn it around and implement summonFrom based on summonInline.
This either enables us to get the error message and possibly pattern match on it as well.
It worked well, but the problem is that within a case statement, we loose refinement:
inline compiletime.summonOrError[Foo] matchcaseRight(v : Foo) => v
caseLeft(msg) if msg =="Some Message"=> compiletime.error("Got my message")
caseLeft(msg) => compiletime.error(msg) //not possible to
Do you think something can be done to allow this concept, or we say "nevermind" as this logic can be implemented in macros?
Compiler version
v3.0.0-RC3
Minimized code
Output
Expectation
expecting "Missing" error.
@nicolasstucki I can take care of this, by implementing
summonInline
directly in the compiler.If this is acceptable, I will submit a PR.
The text was updated successfully, but these errors were encountered: