From b6671889da06f2b0e9cb9e26bab2dcce83f6e0e5 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 7 May 2018 11:07:47 +0200 Subject: [PATCH 1/2] Fix #4408: Remove extra highlighting --- .../src/dotty/tools/dotc/reporting/diagnostic/messages.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala index 1dd469df6b85..478e8013fa98 100644 --- a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala +++ b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala @@ -352,7 +352,7 @@ object messages { } val closeMember = closest match { - case (n, sym) :: Nil => hl""" - did you mean `${s"$siteName.$n"}`?""" + case (n, sym) :: Nil => s""" - did you mean `${s"$siteName.$n"}`?""" case Nil => "" case _ => assert( false, From 66e8afec23268954a24cc7f47d781ca0c2226760 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 7 May 2018 11:34:34 +0200 Subject: [PATCH 2/2] Remove nested interpolator --- .../src/dotty/tools/dotc/reporting/diagnostic/messages.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala index 478e8013fa98..3abc06caddf7 100644 --- a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala +++ b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala @@ -352,7 +352,7 @@ object messages { } val closeMember = closest match { - case (n, sym) :: Nil => s""" - did you mean `${s"$siteName.$n"}`?""" + case (n, sym) :: Nil => s" - did you mean `$siteName.$n`?" case Nil => "" case _ => assert( false,