Skip to content

Commit 1eed5e7

Browse files
committed
Fix missing case for widlcard in UserFacingPrinter
1 parent 873c4b7 commit 1eed5e7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

repl/src/dotty/tools/repl/UserFacingPrinter.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class UserFacingPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
8686
case tp: ConstantType => toText(tp.value)
8787
case tp: TypeAlias => toText(tp.underlying)
8888
case ExprType(result) => ":" ~~ toText(result)
89+
case TypeBounds(lo, hi) => "_"
8990
case tp: TypeRef => tp.info match {
9091
case TypeAlias(alias) => toText(alias)
9192
case _ => toText(tp.info)

repl/test-resources/repl/getClass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
scala> val xs = List(1)
2+
val xs: List[Int] = List(1)
3+
scala> xs.getClass
4+
val res0: Class[_] = class scala.collection.immutable.$colon$colon

0 commit comments

Comments
 (0)