From f5ad8492d076051c8805370c05610d8294ccb241 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Tue, 27 Sep 2016 16:07:56 +0200 Subject: Fix reporting of ErrorTypes in highlighted segments --- src/dotty/tools/dotc/reporting/diagnostic/messages.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/reporting/diagnostic/messages.scala') diff --git a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala index 01cf00cf7..76b2fd3e9 100644 --- a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala +++ b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala @@ -202,13 +202,13 @@ object messages { } } - case class MissingIdent(tree: untpd.Ident, treeKind: String, name: Name)(implicit ctx: Context) + case class MissingIdent(tree: untpd.Ident, treeKind: String, name: String)(implicit ctx: Context) extends Message("E005") { val kind = "Missing Identifier" val msg = em"not found: $treeKind$name" val explanation = { - hl"""|An identifier for `${name.show}` is missing. This means that something + hl"""|An identifier for `$treeKind$name` is missing. This means that something |has either been misspelt or you're forgetting an import""".stripMargin } } -- cgit v1.2.3