We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 363a1e2 commit 8386b64Copy full SHA for 8386b64
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -790,8 +790,7 @@ object SpaceEngine {
790
791
def doShow(s: Space, flattenList: Boolean = false): String = s match {
792
case Empty => "empty"
793
- case Typ(ConstantType(const : Constant), _) if const.tag == StringTag => "\"" + const.value + "\""
794
- case Typ(ConstantType(const : Constant), _) => "" + const.value
+ case Typ(c: ConstantType, _) => c.value.show
795
case Typ(tp: TermRef, _) =>
796
if (flattenList && tp <:< defn.NilType) ""
797
else tp.symbol.showName
0 commit comments