aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/PlainPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-07-19 17:05:16 +0200
committerMartin Odersky <odersky@gmail.com>2013-07-19 17:05:16 +0200
commit702c4fc89f3ff2abbc7457fd72ab19b5bbdbb782 (patch)
tree9e36761227f5290b742e30072a728950f68e2aa4 /src/dotty/tools/dotc/printing/PlainPrinter.scala
parentea640a32264cb78efbf267d5c2be89e3e99dcccf (diff)
downloaddotty-702c4fc89f3ff2abbc7457fd72ab19b5bbdbb782.tar.gz
dotty-702c4fc89f3ff2abbc7457fd72ab19b5bbdbb782.tar.bz2
dotty-702c4fc89f3ff2abbc7457fd72ab19b5bbdbb782.zip
Handling bounded wildcard types.
Diffstat (limited to 'src/dotty/tools/dotc/printing/PlainPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/PlainPrinter.scala4
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 5766dd2ec..b903a5ce1 100644
--- a/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -111,8 +111,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
changePrec(OrPrec) { toText(tp1) ~ " | " ~ toText(tp2) }
case ErrorType =>
"<error>"
- case WildcardType =>
- "?"
+ case tp: WildcardType =>
+ if (tp.optBounds.exists) "?" ~ toTextRHS(tp.bounds) else "?"
case NoType =>
"<notype>"
case NoPrefix =>