aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/PlainPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-02-27 16:49:14 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:14:12 +0100
commite837105c7ed6aa96e1b4d37b46d17e735ce71acf (patch)
tree004c51af11803ab506d2cc81bd23dfc3867e0037 /src/dotty/tools/dotc/printing/PlainPrinter.scala
parent43a03c39a39b039c28e17485af39d14fea1e5600 (diff)
downloaddotty-e837105c7ed6aa96e1b4d37b46d17e735ce71acf.tar.gz
dotty-e837105c7ed6aa96e1b4d37b46d17e735ce71acf.tar.bz2
dotty-e837105c7ed6aa96e1b4d37b46d17e735ce71acf.zip
Tweaks to printing
1) Remove special treatment of PlainPrinter <module>.this. 2) Always use symbol mods when a symbol is available.
Diffstat (limited to 'src/dotty/tools/dotc/printing/PlainPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/PlainPrinter.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/printing/PlainPrinter.scala b/src/dotty/tools/dotc/printing/PlainPrinter.scala
index f34135431..e5206a2d2 100644
--- a/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -94,12 +94,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
tp match {
case tp: TypeType =>
toTextRHS(tp)
- case tp: TermRef if !tp.denotationIsCurrent =>
+ case tp: TermRef if !tp.denotationIsCurrent || tp.symbol.is(Module) =>
toTextRef(tp) ~ ".type"
case tp: TermRef if tp.denot.isOverloaded =>
"<overloaded " ~ toTextRef(tp) ~ ">"
- case tp: TermRef if tp.symbol is Module =>
- toText(tp.underlying) ~ ".type"
case tp: SingletonType =>
toText(tp.underlying) ~ "(" ~ toTextRef(tp) ~ ")"
case tp: TypeRef =>