diff options
author | Jon Pretty <jon.pretty@propensive.com> | 2017-06-06 23:32:34 +0200 |
---|---|---|
committer | Jon Pretty <jon.pretty@propensive.com> | 2017-06-06 23:32:34 +0200 |
commit | d72c7223282f3d64fb1df3e647c1c2a75b8c1bb5 (patch) | |
tree | fc0bebab2eee223d6a7505e2a4ebe2ccc11ec354 /tests/shared/src/main/scala | |
parent | 0ca7b31dcd258cedda79dee1f42459454b5685b1 (diff) | |
download | magnolia-d72c7223282f3d64fb1df3e647c1c2a75b8c1bb5.tar.gz magnolia-d72c7223282f3d64fb1df3e647c1c2a75b8c1bb5.tar.bz2 magnolia-d72c7223282f3d64fb1df3e647c1c2a75b8c1bb5.zip |
Generic macro appears to work more universally
Diffstat (limited to 'tests/shared/src/main/scala')
-rw-r--r-- | tests/shared/src/main/scala/magnolia/main.scala | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/shared/src/main/scala/magnolia/main.scala b/tests/shared/src/main/scala/magnolia/main.scala index aaa8ec9..d01d37a 100644 --- a/tests/shared/src/main/scala/magnolia/main.scala +++ b/tests/shared/src/main/scala/magnolia/main.scala @@ -3,17 +3,15 @@ package magnolia sealed trait Bar case class Foo(one: String) extends Bar -case class Quux(two: Double, three: List[Bar]) extends Bar -case class Bippy(four: String) +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 object Main { + def main(args: Array[String]): Unit = { println(implicitly[Extractor[Bar]].extract(Thing("42"))) - - - } } |