From c619f762b966bc0d2f4de30b001eb7df76c5a347 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Wed, 30 Nov 2016 14:22:19 +0100 Subject: Fix `Option[Nothing]` show --- library/test/dotty/ShowTests.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'library') diff --git a/library/test/dotty/ShowTests.scala b/library/test/dotty/ShowTests.scala index ef259e5d8..92539d0c4 100644 --- a/library/test/dotty/ShowTests.scala +++ b/library/test/dotty/ShowTests.scala @@ -52,8 +52,7 @@ class ShowTests { @Test def showOptions = { import Show.Option._ - // TODO: first case is not possible since there's no Show[Nothing] - yet - //assertEquals("None", None.show) + assertEquals("None", None.show) assertEquals("None", (None: Option[String]).show) assertEquals("Some(\"hello opt\")", Some("hello opt").show) } -- cgit v1.2.3