magnolia
magnolia copied to clipboard
Support @implicitNotFound errors
Magnolia has pretty good missing implicit errors.
However custom @implicitNotFound messages defined by users are swallowed.
This came up on Gitter.
Are you thinking that we could read the appropriate @implicitNotFound annotation and use its text in Magnolia's output?
It should be simpler than that - use inferImplicitValue with silent = false and catch the error. I'm not sure if this would slow us down though.
Although it probably wouldn't be too hard to read the annotation from the type only when we need to produce an error.