Skip to content

Commit d63e971

Browse files
committed
Fix tasty bootstrap
1 parent 1594bb0 commit d63e971

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

library/src/dotty/Show.scala

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait Show[-T] {
1212
* default instances in this object
1313
*/
1414
object Show {
15-
private[this] val defaultShow = new Show[Any] {
15+
private[this] val defaultShow: Show[Any] = new Show[Any] {
1616
def show(x: Any) = x.toString
1717
}
1818

@@ -25,7 +25,7 @@ object Show {
2525
ev.show(v)
2626
}
2727

28-
implicit val stringShow = new Show[String] {
28+
implicit val stringShow: Show[String] = new Show[String] {
2929
// From 2.12 spec, `charEscapeSeq`:
3030
// ‘\‘ (‘b‘ | ‘t‘ | ‘n‘ | ‘f‘ | ‘r‘ | ‘"‘ | ‘'‘ | ‘\‘)
3131
def show(str: String) =
@@ -45,19 +45,19 @@ object Show {
4545
} + "\""
4646
}
4747

48-
implicit val intShow = new Show[Int] {
48+
implicit val intShow: Show[Int] = new Show[Int] {
4949
def show(i: Int) = i.toString
5050
}
5151

52-
implicit val floatShow = new Show[Float] {
52+
implicit val floatShow: Show[Float] = new Show[Float] {
5353
def show(f: Float) = f + "f"
5454
}
5555

56-
implicit val doubleShow = new Show[Double] {
56+
implicit val doubleShow: Show[Double] = new Show[Double] {
5757
def show(d: Double) = d.toString
5858
}
5959

60-
implicit val charShow = new Show[Char] {
60+
implicit val charShow: Show[Char] = new Show[Char] {
6161
def show(c: Char) = "'" + (c match {
6262
case '\b' => "\\b"
6363
case '\t' => "\\t"
@@ -70,33 +70,33 @@ object Show {
7070
}) + "'"
7171
}
7272

73-
implicit def showList[T](implicit st: Show[T]) = new Show[List[T]] {
73+
implicit def showList[T](implicit st: Show[T]): Show[List[T]] = new Show[List[T]] {
7474
def show(xs: List[T]) =
7575
if (xs.isEmpty) "Nil"
7676
else "List(" + xs.map(_.show).mkString(", ") + ")"
7777
}
7878

79-
implicit val showNil = new Show[List[Nothing]] {
79+
implicit val showNil: Show[List[Nothing]] = new Show[List[Nothing]] {
8080
def show(xs: List[Nothing]) = "Nil"
8181
}
8282

83-
implicit def showOption[T](implicit st: Show[T]) = new Show[Option[T]] {
83+
implicit def showOption[T](implicit st: Show[T]): Show[Option[T]] = new Show[Option[T]] {
8484
def show(ot: Option[T]): String = ot match {
8585
case Some(t) => "Some("+ st.show(t) + ")"
8686
case none => "None"
8787
}
8888
}
8989

90-
implicit val showNone = new Show[Option[Nothing]] {
90+
implicit val showNone: Show[Option[Nothing]] = new Show[Option[Nothing]] {
9191
def show(n: Option[Nothing]) = "None"
9292
}
9393

94-
implicit def showMap[K, V](implicit sk: Show[K], sv: Show[V]) = new Show[Map[K, V]] {
94+
implicit def showMap[K,V](implicit sk: Show[K], sv: Show[V]): Show[Map[K,V]] = new Show[Map[K,V]] {
9595
def show(m: Map[K, V]) =
9696
"Map(" + m.map { case (k, v) => sk.show(k) + " -> " + sv.show(v) } .mkString (", ") + ")"
9797
}
9898

99-
implicit def showMapOfNothing = new Show[Map[Nothing, Nothing]] {
99+
implicit def showMapOfNothing: Show[Map[Nothing,Nothing]] = new Show[Map[Nothing,Nothing]] {
100100
def show(m: Map[Nothing, Nothing]) = m.toString
101101
}
102102
}

0 commit comments

Comments
 (0)