File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,6 @@ object Formatting {
7979 class SyntaxFormatter (sc : StringContext ) extends StringFormatter (sc) {
8080 override protected def showArg (arg : Any )(implicit ctx : Context ): String =
8181 arg match {
82- case arg : Showable if ctx.settings.color.value != " never" =>
83- val highlighted =
84- SyntaxHighlighting (wrapNonSensical(arg, super .showArg(arg)))
85- new String (highlighted.toArray)
8682 case hl : Highlight =>
8783 hl.show
8884 case hb : HighlightBuffer =>
Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ object messages {
744744 val msg =
745745 hl """ | ${NoColor (msgPrefix)} type arguments for $prettyName$expectedArgString
746746 |expected: $expectedArgString
747- |actual: $actualArgString""" .stripMargin
747+ |actual: ${ NoColor ( actualArgString)} """ .stripMargin
748748
749749 val explanation = {
750750 val tooManyTypeParams =
@@ -1433,11 +1433,11 @@ object messages {
14331433 val msg = hl " $tpe does not take type parameters "
14341434
14351435 private val ps =
1436- if (params.size == 1 ) hl " a type parameter ${params.head}"
1437- else hl " type parameters ${params.map(_.show).mkString(" , " )}"
1436+ if (params.size == 1 ) s " a type parameter ${params.head}"
1437+ else s " type parameters ${params.map(_.show).mkString(" , " )}"
14381438
14391439 val explanation =
1440- i """ You specified $ps for ${hl " $tpe" }, which is not
1440+ i """ You specified ${ NoColor (ps)} for ${hl " $tpe" }, which is not
14411441 |declared to take any.
14421442 | """
14431443 }
You can’t perform that action at this time.
0 commit comments