diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-05 17:10:16 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:14:15 +0100 |
commit | 4c80f8949c816f944ff20f9fe07b842eb6164554 (patch) | |
tree | f0e1af0ca947fca8bcd9b862d34908f47da7b376 /src/dotty | |
parent | 35d1160cd65d21076b1f640624663ad7b35f9c56 (diff) | |
download | dotty-4c80f8949c816f944ff20f9fe07b842eb6164554.tar.gz dotty-4c80f8949c816f944ff20f9fe07b842eb6164554.tar.bz2 dotty-4c80f8949c816f944ff20f9fe07b842eb6164554.zip |
Tweak to printing Typevars
Diffstat (limited to 'src/dotty')
-rw-r--r-- | src/dotty/tools/dotc/printing/PlainPrinter.scala | 3 |
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 = |