File tree 1 file changed +1
-3
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,6 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
169
169
}
170
170
171
171
homogenize(tp) match {
172
- case x : ConstantType if homogenizedView =>
173
- return toText(x.widen)
174
172
case AppliedType (tycon, args) =>
175
173
val cls = tycon.typeSymbol
176
174
if (tycon.isRepeatedParam) return toTextLocal(args.head) ~ " *"
@@ -617,7 +615,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
617
615
}
618
616
619
617
private def toTextOwner (tree : Tree [_]) =
620
- " [owner = " ~ tree.symbol.owner .show ~ " ]" provided ctx.settings.YprintDebugOwners .value
618
+ " [owner = " ~ tree.symbol.maybeOwner .show ~ " ]" provided ctx.settings.YprintDebugOwners .value
621
619
622
620
protected def dclTextOr [T >: Untyped ](tree : Tree [T ])(treeText : => Text ) =
623
621
toTextOwner(tree) ~ {
You can’t perform that action at this time.
0 commit comments