Skip to content

Commit 5182efc

Browse files
authored
Update tests/run/i7788.scala
1 parent 4de44e3 commit 5182efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run/i7788.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ given showEither[A,B]: (sA: Show[A]) => Show[B] => Show[Either[A,B]] =
88
_.fold(a => s"Left(${summon[Show[A]].show(a)})", b => s"Right(${summon[Show[B]].show(b)})")
99
given [A,B]: (sA: Show[A]) => (sB: Show[B]) => Show[(A,B)] = (a,b) => s"(${sA.show(a)}), ${sB.show(b)})"
1010

11-
@main def ShowDemo =
11+
@main def Test =
1212
println(summon[Show[(Int, String)]].show(0 -> "hello"))
1313
println(summon[Show[Either[Int, String]]].show(Left(-1)))
1414
println(summon[Show[Either[Int, String]]].show(Right("success message")))

0 commit comments

Comments
 (0)