Skip to content

Commit 0bb8530

Browse files
committed
Fix missing whitespace after val printing
1 parent e570bf7 commit 0bb8530

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,6 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
879879
protected def valDefToText[T <: Untyped](tree: ValDef[T]): Text = {
880880
dclTextOr(tree) {
881881
modText(tree.mods, tree.symbol, keywordStr(if (tree.mods.is(Mutable)) "var" else "val"), isType = false) ~~
882-
keywordText("erased ").provided(tree.mods.flags.is(Flags.Erased)) ~
883882
valDefText(nameIdText(tree)) ~ optAscription(tree.tpt) ~
884883
withEnclosingDef(tree) { optText(tree.rhs)(" = " ~ _) }
885884
}
@@ -1030,7 +1029,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
10301029
else PrintableFlags(isType)
10311030
if (homogenizedView && mods.flags.isTypeFlags) flagMask &~= GivenOrImplicit // drop implicit/given from classes
10321031
val rawFlags = if (sym.exists) sym.flagsUNSAFE else mods.flags
1033-
if (rawFlags.is(Param)) flagMask = flagMask &~ Given &~ Erased
1032+
if (rawFlags.is(Param)) flagMask = flagMask &~ Given
10341033
val flags = rawFlags & flagMask
10351034
var flagsText = toTextFlags(sym, flags)
10361035
val annotTexts =

0 commit comments

Comments
 (0)