diff options
Diffstat (limited to 'tests/shared')
-rw-r--r-- | tests/shared/src/main/scala/magnolia/main.scala | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/shared/src/main/scala/magnolia/main.scala b/tests/shared/src/main/scala/magnolia/main.scala index d01d37a..67db603 100644 --- a/tests/shared/src/main/scala/magnolia/main.scala +++ b/tests/shared/src/main/scala/magnolia/main.scala @@ -1,17 +1,15 @@ package magnolia -sealed trait Bar +sealed trait Tree -case class Foo(one: String) extends Bar -case class Quux(two: String, three: Double, four: List[Bar]) extends Bar -case class Bippy(five: String, six: List[Quux]) extends Bar -class Baz(val x: Bar) extends AnyVal +case class Branch(left: List[Leaf]) extends Tree +case class Leaf(node: List[String], right: List[Branch], left2: List[Branch], another: List[Leaf]) extends Tree object Main { def main(args: Array[String]): Unit = { - println(implicitly[Extractor[Bar]].extract(Thing("42"))) + println(implicitly[Extractor[List[Leaf]]].extract(Thing("42"))) } } |