diff options
author | Paolo G. Giarrusso <p.giarrusso@gmail.com> | 2016-11-05 18:06:25 +0100 |
---|---|---|
committer | Paolo G. Giarrusso <p.giarrusso@gmail.com> | 2016-11-11 13:33:04 +0100 |
commit | e11c91a79e9b3d8d9790484db61fa4fe1c772042 (patch) | |
tree | 127481c7fc97c8cea1ac914b300336abf0630fa8 | |
parent | d3ccc48e5cbacdefe160839ac91e1a1495c0bd60 (diff) | |
download | dotty-e11c91a79e9b3d8d9790484db61fa4fe1c772042.tar.gz dotty-e11c91a79e9b3d8d9790484db61fa4fe1c772042.tar.bz2 dotty-e11c91a79e9b3d8d9790484db61fa4fe1c772042.zip |
Clarify error for unbound identifier
-rw-r--r-- | src/dotty/tools/dotc/reporting/diagnostic/messages.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala index 82c855e9d..4ee27c852 100644 --- a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala +++ b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala @@ -194,12 +194,14 @@ object messages { case class MissingIdent(tree: untpd.Ident, treeKind: String, name: String)(implicit ctx: Context) extends Message(6) { - val kind = "Missing Identifier" + val kind = "Unbound Identifier" val msg = em"not found: $treeKind$name" val explanation = { - hl"""|An identifier for `$treeKind$name` is missing. This means that something - |has either been misspelt or you're forgetting an import""" + hl"""|The identifier for `$treeKind$name` is not bound, that is, + |no declaration for this identifier can be found. + |That can happen for instance if $name or its declaration has either been + |misspelt, or if you're forgetting an import""" } } |