aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala
diff options
context:
space:
mode:
authorEnno Runne <enno.runne@baymarkets.com>2017-02-14 21:16:47 +0100
committerEnno Runne <enno.runne@baymarkets.com>2017-02-14 21:16:47 +0100
commit81cda70db72046901e8ca5f8c958224cafdf1bf4 (patch)
tree71c00946da2050fdafa2349e6bc3891237b0b0de /compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala
parent606e36be88c47cd3f2e8856d6bd6b95aed7aa191 (diff)
downloaddotty-81cda70db72046901e8ca5f8c958224cafdf1bf4.tar.gz
dotty-81cda70db72046901e8ca5f8c958224cafdf1bf4.tar.bz2
dotty-81cda70db72046901e8ca5f8c958224cafdf1bf4.zip
Change '... expected but found ...' to Message
Diffstat (limited to 'compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala b/compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala
index 2497fb216..ab1222dab 100644
--- a/compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala
+++ b/compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala
@@ -119,6 +119,8 @@ class ExtendMessage(_msg: () => Message)(f: String => String) { self =>
class NoExplanation(val msg: String) extends Message(NoExplanation.ID) {
val explanation = ""
val kind = ""
+
+ override def toString(): String = s"NoExplanation($msg)"
}
/** The extractor for `NoExplanation` can be used to check whether any error