aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/src/dotty/Show.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/dotty/Show.scala b/library/src/dotty/Show.scala
index 5b75a6ea3..2feeb29ef 100644
--- a/library/src/dotty/Show.scala
+++ b/library/src/dotty/Show.scala
@@ -76,8 +76,8 @@ object Show {
else "List(" + xs.map(_.show).mkString(", ") + ")"
}
- implicit val showNil: Show[List[Nothing]] = new Show[List[Nothing]] {
- def show(xs: List[Nothing]) = "Nil"
+ implicit val showNil: Show[Nil.type] = new Show[Nil.type] {
+ def show(xs: Nil.type) = "Nil"
}
implicit def showOption[T](implicit st: Show[T]): Show[Option[T]] = new Show[Option[T]] {
@@ -87,8 +87,8 @@ object Show {
}
}
- implicit val showNone: Show[Option[Nothing]] = new Show[Option[Nothing]] {
- def show(n: Option[Nothing]) = "None"
+ implicit val showNone: Show[None.type] = new Show[None.type] {
+ def show(n: None.type) = "None"
}
implicit def showMap[K,V](implicit sk: Show[K], sv: Show[V]): Show[Map[K,V]] = new Show[Map[K,V]] {