aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools')
-rw-r--r--src/dotty/tools/dotc/printing/PlainPrinter.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/printing/PlainPrinter.scala b/src/dotty/tools/dotc/printing/PlainPrinter.scala
index f2ddae42f..8dedecbb7 100644
--- a/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -97,7 +97,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
if (pre.lastLine.endsWith(".")) pre ~ "type"
else fullNameString(tp.typeSymbol.skipPackageObject) ~ ".type"
case TypeRef(pre, name) =>
- toTextPrefix(pre) ~ nameString(tp.typeSymbol)
+ toTextPrefix(pre) ~ nameString(name)
case tp: RefinedType =>
// return tp.toString // !!! DEBUG
val parent :: (refined: List[RefinedType]) =
@@ -171,7 +171,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
protected def toTextPrefix(tp: Type): Text = controlled {
tp match {
case tp @ TermRef(pre, name) =>
- toTextPrefix(pre) ~ nameString(tp.symbol) ~ "."
+ toTextPrefix(pre) ~ nameString(name) ~ "."
case ThisType(cls) =>
nameString(cls) + ".this."
case SuperType(thistpe, _) =>