Skip to content

Commit 6ddd045

Browse files
committed
Simplify const rendering
1 parent 108dd09 commit 6ddd045

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

Diff for: compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,7 @@ object SpaceEngine {
784784

785785
def doShow(s: Space, flattenList: Boolean = false): String = s match {
786786
case Empty => "empty"
787-
case Typ(ConstantType(const : Constant), _) if const.tag == StringTag => "\"" + const.value + "\""
788-
case Typ(ConstantType(const : Constant), _) => "" + const.value
787+
case Typ(c: ConstantType, _) => c.value.show
789788
case Typ(tp: TermRef, _) =>
790789
if (flattenList && tp <:< defn.NilType) ""
791790
else tp.symbol.showName

0 commit comments

Comments
 (0)