File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -659,7 +659,7 @@ object desugar {
659
659
ctx.error(hl """ ${" abstract" } modifier cannot be used for objects """ , flagPos(Abstract ))
660
660
for (flag <- List (Sealed , Final )) {
661
661
if (mods is flag)
662
- ctx.warning(hl """ ${ flag.toString} modifier is redundant for objects """ , flagPos(flag))
662
+ ctx.warning(hl """ $flag modifier is redundant for objects """ , flagPos(flag))
663
663
}
664
664
665
665
if (mods is Package )
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ object Formatting {
83
83
hl.show
84
84
case hb : HighlightBuffer =>
85
85
hb.toString
86
- case str : String if ctx.settings.color.value != " never" =>
87
- new String (SyntaxHighlighting (str).toArray)
86
+ case str if ctx.settings.color.value != " never" =>
87
+ new String (SyntaxHighlighting (super .showArg( str) ).toArray)
88
88
case _ => super .showArg(arg)
89
89
}
90
90
}
You can’t perform that action at this time.
0 commit comments