aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/PlainPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-03-04 13:46:11 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:14:14 +0100
commitde11f332879bbabac6fc997b5c08e013f487742e (patch)
tree09895a85d486c76c87e3abb0fbe627eda87329be /src/dotty/tools/dotc/printing/PlainPrinter.scala
parentfe48a0c4d84aa6f5b4b33cc8db6b10fe03f9a444 (diff)
downloaddotty-de11f332879bbabac6fc997b5c08e013f487742e.tar.gz
dotty-de11f332879bbabac6fc997b5c08e013f487742e.tar.bz2
dotty-de11f332879bbabac6fc997b5c08e013f487742e.zip
Tweaks to printing
To avoid spurious differences and allow all flags in modifiers to be printed.
Diffstat (limited to 'src/dotty/tools/dotc/printing/PlainPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/PlainPrinter.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/printing/PlainPrinter.scala b/src/dotty/tools/dotc/printing/PlainPrinter.scala
index 573c36bbc..74da5cf2c 100644
--- a/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -141,7 +141,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
toTextLocal(tpe) ~ " " ~ toText(annot)
case tp: TypeVar =>
if (tp.isInstantiated)
- toTextLocal(tp.instanceOpt) ~ "'" // debug for now, so that we can see where the TypeVars are.
+ toTextLocal(tp.instanceOpt) ~ ("'" provided !ctx.settings.YtestPickler.value) // debug for now, so that we can see where the TypeVars are.
else {
val constr = ctx.typerState.constraint
val bounds =
@@ -247,8 +247,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
else " = "
eql ~ toText(lo)
} else
- (if (lo == defn.NothingType) Text() else " >: " ~ toText(lo)) ~
- (if (hi == defn.AnyType) Text() else " <: " ~ toText(hi))
+ (if (lo isRef defn.NothingClass) Text() else " >: " ~ toText(lo)) ~
+ (if (hi isRef defn.AnyClass) Text() else " <: " ~ toText(hi))
case tp @ ClassInfo(pre, cls, cparents, decls, selfInfo) =>
val preText = toTextLocal(pre)
val (tparams, otherDecls) = decls.toList partition treatAsTypeParam