We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c329fc5 commit 8407e32Copy full SHA for 8407e32
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -786,8 +786,7 @@ object SpaceEngine {
786
787
def doShow(s: Space, flattenList: Boolean = false): String = s match {
788
case Empty => "empty"
789
- case Typ(ConstantType(const : Constant), _) if const.tag == StringTag => "\"" + const.value + "\""
790
- case Typ(ConstantType(const : Constant), _) => "" + const.value
+ case Typ(c: ConstantType, _) => c.value.show
791
case Typ(tp: TermRef, _) =>
792
if (flattenList && tp <:< defn.NilType) ""
793
else tp.symbol.showName
0 commit comments