File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
269
269
else if (suppressKw) PrintableFlags &~ Private
270
270
else PrintableFlags
271
271
if (homogenizedView && mods.flags.isTypeFlags) flagMask &~= Implicit // drop implicit from classes
272
- val flagsText = ( mods.flags & flagMask).toString
272
+ val flagsText = keywordStr(( mods.flags & flagMask).toString)
273
273
Text (mods.annotations.map(annotText), " " ) ~~ flagsText ~~ (kw provided ! suppressKw)
274
274
}
275
275
@@ -703,7 +703,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
703
703
else {
704
704
var flags = sym.flagsUNSAFE
705
705
if (flags is TypeParam ) flags = flags &~ Protected
706
- Text ((flags & PrintableFlags ).flagStrings map stringToText, " " )
706
+ Text ((flags & PrintableFlags ).flagStrings map (flag => stringToText(keywordStr(flag))) , " " )
707
707
}
708
708
709
709
override def toText (denot : Denotation ): Text = denot match {
You can’t perform that action at this time.
0 commit comments