Skip to content

Commit 2afb505

Browse files
committed
Some polishings in RefinedPrinter
- avoid computing owner of NoSymbol
1 parent 6331cd8 commit 2afb505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
612612
}
613613

614614
private def toTextOwner(tree: Tree[_]) =
615-
"[owner = " ~ tree.symbol.owner.show ~ "]" provided ctx.settings.YprintDebugOwners.value
615+
"[owner = " ~ tree.symbol.maybeOwner.show ~ "]" provided ctx.settings.YprintDebugOwners.value
616616

617617
protected def dclTextOr[T >: Untyped](tree: Tree[T])(treeText: => Text) =
618618
toTextOwner(tree) ~ {

0 commit comments

Comments
 (0)