Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Dec 11, 2025

Sometimes we have more than one representation of the same symbol, i.e.
both ^ and cap, or both => and cap. If the cap is rendered first, we expand
the following string to ^{cap} or ->{cap} in order make it clearer that
they are the same. Unfortunately it only works if the cap comes first.

Improve rendering of messages with multi-line code positions. Two improvements:

 - Add a blank line between the error message proper and the code lines that follow it.
 - If there are more than 3 code lines following it, summarize them by printing
   the first and last line and a `...` in between.
Sometimes we have more than one representation of the same symbol, i.e.
both `^` and `cap`, or both `=>` and `cap`. If the cap is rendered first, we expand
the following string to `^{cap}` or `->{cap}` in order make it clearer that
they are the same. Unfortunately it only works if the cap comes first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant