We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 108dd09 commit 6ddd045Copy full SHA for 6ddd045
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -784,8 +784,7 @@ object SpaceEngine {
784
785
def doShow(s: Space, flattenList: Boolean = false): String = s match {
786
case Empty => "empty"
787
- case Typ(ConstantType(const : Constant), _) if const.tag == StringTag => "\"" + const.value + "\""
788
- case Typ(ConstantType(const : Constant), _) => "" + const.value
+ case Typ(c: ConstantType, _) => c.value.show
789
case Typ(tp: TermRef, _) =>
790
if (flattenList && tp <:< defn.NilType) ""
791
else tp.symbol.showName
0 commit comments