Skip to content

Commit 5be809b

Browse files
authored
Merge pull request #5984 from dotty-staging/fix-5983
Fix #5983: fix color escaping in exhaustivity warnings
2 parents 12593ab + 072c680 commit 5be809b

File tree

1 file changed

+1
-1
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
839839

840840
def doShow(s: Space, mergeList: Boolean = false): String = s match {
841841
case Empty => ""
842-
case Typ(c: ConstantType, _) => c.value.show
842+
case Typ(c: ConstantType, _) => c.value.value.toString
843843
case Typ(tp: TermRef, _) => tp.symbol.showName
844844
case Typ(tp, decomposed) =>
845845
val sym = tp.widen.classSymbol

0 commit comments

Comments
 (0)