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.
2 parents fe1c05e + 9f43572 commit 668f1b7Copy full SHA for 668f1b7
compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -269,7 +269,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
269
else if (suppressKw) PrintableFlags &~ Private
270
else PrintableFlags
271
if (homogenizedView && mods.flags.isTypeFlags) flagMask &~= Implicit // drop implicit from classes
272
- val flagsText = keywordStr((mods.flags & flagMask).toString)
+ val flags = mods.flags & flagMask
273
+ val flagsText = if (flags.isEmpty) "" else keywordStr((mods.flags & flagMask).toString)
274
Text(mods.annotations.map(annotText), " ") ~~ flagsText ~~ (kw provided !suppressKw)
275
}
276
0 commit comments