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.
1 parent f32eefc commit c6fa1a4Copy full SHA for c6fa1a4
compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -303,7 +303,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
303
if (qual.isType) toTextLocal(qual) ~ "#" ~ toText(name)
304
else toTextLocal(qual) ~ ("." ~ nameIdText(tree) provided name != nme.CONSTRUCTOR)
305
case tree: This =>
306
- optDotPrefix(tree) ~ "this" ~ idText(tree)
+ if (homogenizedView && tree.hasType) toText(tree.typeOpt) // We only pickle the type of This, not the tree
307
+ else optDotPrefix(tree) ~ "this" ~ idText(tree)
308
case Super(qual: This, mix) =>
309
optDotPrefix(qual) ~ "super" ~ optText(mix)("[" ~ _ ~ "]")
310
case Apply(fun, args) =>
0 commit comments