From 072c680677cc13ff54d348fce26a28e8272666a9 Mon Sep 17 00:00:00 2001 From: Liu Fengyun Date: Mon, 25 Feb 2019 13:45:50 +0100 Subject: [PATCH] Fix #5983: fix color escaping in exhaustivity warnings --- compiler/src/dotty/tools/dotc/transform/patmat/Space.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala index 3b184b6bb9fd..d4a8af514e32 100644 --- a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala +++ b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala @@ -839,7 +839,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic { def doShow(s: Space, mergeList: Boolean = false): String = s match { case Empty => "" - case Typ(c: ConstantType, _) => c.value.show + case Typ(c: ConstantType, _) => c.value.value.toString case Typ(tp: TermRef, _) => tp.symbol.showName case Typ(tp, decomposed) => val sym = tp.widen.classSymbol