From 7ab0889d7ab4480d0d90346432006ffd345b4916 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 14 Feb 2018 15:00:52 -0800 Subject: Remove need for special case for enums --- src/test/scala/CoproductTypeFormats.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/test') diff --git a/src/test/scala/CoproductTypeFormats.scala b/src/test/scala/CoproductTypeFormats.scala index f16e4c7..f9b71b8 100644 --- a/src/test/scala/CoproductTypeFormats.scala +++ b/src/test/scala/CoproductTypeFormats.scala @@ -31,10 +31,10 @@ class CoproductTypeFormats """{"type":"Plus","lhs":{"type":"Value","x":42},"rhs":{"type":"Value","x":0}}""" ) - // "Case object child" should behave like checkCoherence[Expr]( - // One, - // """{"type":"One"}""" - // ) + "Case object child" should behave like checkCoherence[Expr]( + One, + """"One"""" + ) @gadt("kind") sealed abstract class Keyword(`type`: String) @@ -45,7 +45,6 @@ class CoproductTypeFormats """{"kind":"If","type":"class"}""" ) - @enum sealed trait Enum case object A extends Enum case object B extends Enum -- cgit v1.2.3