aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/PlainPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-03-05 17:10:16 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:14:15 +0100
commit4c80f8949c816f944ff20f9fe07b842eb6164554 (patch)
treef0e1af0ca947fca8bcd9b862d34908f47da7b376 /src/dotty/tools/dotc/printing/PlainPrinter.scala
parent35d1160cd65d21076b1f640624663ad7b35f9c56 (diff)
downloaddotty-4c80f8949c816f944ff20f9fe07b842eb6164554.tar.gz
dotty-4c80f8949c816f944ff20f9fe07b842eb6164554.tar.bz2
dotty-4c80f8949c816f944ff20f9fe07b842eb6164554.zip
Tweak to printing Typevars
Diffstat (limited to 'src/dotty/tools/dotc/printing/PlainPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/PlainPrinter.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/PlainPrinter.scala b/src/dotty/tools/dotc/printing/PlainPrinter.scala
index 8bc029f32..0bd1d4499 100644
--- a/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -141,7 +141,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
toTextLocal(tpe) ~ " " ~ toText(annot)
case tp: TypeVar =>
if (tp.isInstantiated)
- toTextLocal(tp.instanceOpt) ~ ("'" provided !ctx.settings.YtestPickler.value) // debug for now, so that we can see where the TypeVars are.
+ if (ctx.settings.YtestPickler.value) toText(tp.instanceOpt)
+ else toTextLocal(tp.instanceOpt) // debug for now, so that we can see where the TypeVars are.
else {
val constr = ctx.typerState.constraint
val bounds =