-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #3655: Remove hl interpolator #6471
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
Conversation
@@ -1,10 +1,28 @@ | |||
object Foo { | |||
def foo(): Int = { | |||
val f: implicit Int => Int = (implicit x: Int) => 2 * x // error // error | |||
val f: implicit Int => Int = (implicit x: Int) => 2 * x // error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is caused by the use of em
instead of hl
, which, IIUC, will shadow non nonsensically errors after the first one. On master this line has an additional error: // error: only classes can have declared but undefined members
, I think keeping only the first one makes sense here.
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
Outdated
Show resolved
Hide resolved
Thanks for doing this! |
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
Outdated
Show resolved
Hide resolved
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
Outdated
Show resolved
Hide resolved
Since calls to .show on other things already use colors I think that's reasonable. |
I addressed the comments and added some colors to Symbol in RefinedPrinter, the last 3 commits need a review |
No description provided.