diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-04 22:33:14 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-04 22:33:14 +0100 |
commit | 0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30 (patch) | |
tree | 9d7c06876b8c7d697d2f40645306b13a4c97c771 /src/dotty/tools/dotc/printing/PlainPrinter.scala | |
parent | b85d7e2cbd1f4df217db544a467607a73e05eddc (diff) | |
download | dotty-0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30.tar.gz dotty-0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30.tar.bz2 dotty-0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30.zip |
Output cleanups
Diffstat (limited to 'src/dotty/tools/dotc/printing/PlainPrinter.scala')
-rw-r--r-- | src/dotty/tools/dotc/printing/PlainPrinter.scala | 4 |
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 16fc6ae5d..dbdc0d632 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 { case tp: TermRef if tp.denot.isOverloaded => "<overloaded " ~ toTextRef(tp) ~ ">" case tp: TermRef if tp.symbol is Module => - toText(tp.underlying) + toText(tp.underlying) ~ ".type" case tp: SingletonType => toText(tp.underlying) ~ "(" ~ toTextRef(tp) ~ ")" case tp @ TypeRef(pre, name) => @@ -114,7 +114,7 @@ class PlainPrinter(_ctx: Context) extends Printer { case ErrorType => "<error>" case tp: WildcardType => - if (tp.optBounds.exists) "?" ~ toTextRHS(tp.bounds) else "?" + if (tp.optBounds.exists) "(?" ~ toTextRHS(tp.bounds) ~ ")" else "?" case NoType => "<notype>" case NoPrefix => |