diff options
Diffstat (limited to 'src/dotty/tools/dotc/printing/Formatting.scala')
-rw-r--r-- | src/dotty/tools/dotc/printing/Formatting.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/Formatting.scala b/src/dotty/tools/dotc/printing/Formatting.scala index 41bd91607..ae3819513 100644 --- a/src/dotty/tools/dotc/printing/Formatting.scala +++ b/src/dotty/tools/dotc/printing/Formatting.scala @@ -241,7 +241,7 @@ object Formatting { */ def typeDiff(found: Type, expected: Type)(implicit ctx: Context): (String, String) = { val fnd = wrapNonSensical(found, found.show) - val exp = wrapNonSensical(expected, found.show) + val exp = wrapNonSensical(expected, expected.show) (found, expected) match { case (_: RefinedType, _: RefinedType) => |