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 cd663ec commit c1d1c21Copy full SHA for c1d1c21
compiler/src/dotty/tools/dotc/printing/DecompilerPrinter.scala
@@ -55,11 +55,11 @@ class DecompilerPrinter(_ctx: Context) extends RefinedPrinter(_ctx) {
55
}
56
57
override protected def toTextTemplate(impl: Template, ofNew: Boolean = false): Text = {
58
- def filter(sym: Symbol): Boolean = {
+ def isSyntheticParent(sym: Symbol): Boolean = {
59
sym.maybeOwner == defn.ObjectClass ||
60
(sym == defn.ProductClass && impl.symbol.owner.is(Case))
61
62
- val impl1 = impl.copy(parents = impl.parents.filterNot(p => filter(p.symbol)))
+ val impl1 = impl.copy(parents = impl.parents.filterNot(p => isSyntheticParent(p.symbol)))
63
super.toTextTemplate(impl1, ofNew)
64
65
0 commit comments