File tree 1 file changed +3
-1
lines changed
src/dotty/tools/dotc/printing 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
63
63
}
64
64
65
65
override def toTextPrefix (tp : Type ): Text = controlled {
66
- def isOmittable (sym : Symbol ) =
66
+ def isOmittable (sym : Symbol ) =
67
67
if (ctx.settings.verbose.value) false
68
68
else if (homogenizedView) isEmptyPrefix(sym) // drop <root> and anonymous classes, but not scala, Predef.
69
69
else isOmittablePrefix(sym)
@@ -351,6 +351,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
351
351
toTextLocal(tpt) ~ " " ~ blockText(refines)
352
352
case AppliedTypeTree (tpt, args) =>
353
353
toTextLocal(tpt) ~ " [" ~ Text (args map argText, " , " ) ~ " ]"
354
+ case ByNameTypeTree (tpt) =>
355
+ " => " ~ toTextLocal(tpt)
354
356
case TypeBoundsTree (lo, hi) =>
355
357
optText(lo)(" >: " ~ _) ~ optText(hi)(" <: " ~ _)
356
358
case Bind (name, body) =>
You can’t perform that action at this time.
0 commit comments