aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/reporting/diagnostic/messages.scala')
-rw-r--r--src/dotty/tools/dotc/reporting/diagnostic/messages.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
index 009636593..01cf00cf7 100644
--- a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
+++ b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -216,8 +216,8 @@ object messages {
case class TypeMismatch(found: Type, expected: Type, whyNoMatch: String = "")(implicit ctx: Context)
extends Message("E006") {
val kind = "Type Mismatch"
- private val where = Formatting.disambiguateTypes(found, expected)
- private val (fnd, exp) = Formatting.typeDiff(found, expected)
+ private val (where, printCtx) = Formatting.disambiguateTypes(found, expected)
+ private val (fnd, exp) = Formatting.typeDiff(found, expected)(printCtx)
val msg =
s"""|found: $fnd
|required: $exp