Skip to content

Commit 5e01496

Browse files
committed
Use typeSymbol not classSymbol
Refines 8b941d6: classSymbol is unnecessarily aggressive here.
1 parent 6e8dfb4 commit 5e01496

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
@@ -185,7 +185,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
185185
val l :: r :: Nil = args
186186
val opName = tyconName(tycon)
187187

188-
return toTextInfixType(tyconName(tycon), l, r) { simpleNameString(tycon.classSymbol) }
188+
return toTextInfixType(tyconName(tycon), l, r) { simpleNameString(tycon.typeSymbol) }
189189
}
190190

191191
// Since RefinedPrinter, unlike PlainPrinter, can output right-associative type-operators, we must override handling

0 commit comments

Comments
 (0)