We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a27d34 commit df7c559Copy full SHA for df7c559
library/src/dotty/Show.scala
@@ -6,7 +6,7 @@ trait Show[T] {
6
7
trait LowPrioShow {
8
implicit def defaultShow[T]: Show[T] = new Show[T] {
9
- def show(x: T) = String.valueOf(x)
+ def show(x: T) = if (x == null) "null" else x.toString
10
}
11
12
0 commit comments