diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/main/scala/tests.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/main/scala/tests.scala b/tests/src/main/scala/tests.scala index 10eb465..5142861 100644 --- a/tests/src/main/scala/tests.scala +++ b/tests/src/main/scala/tests.scala @@ -55,7 +55,9 @@ object Tests extends TestApp { test("local implicit beats Magnolia") { import magnolia.examples._ - implicit val showPerson: Show[String, Person] = new Show[String, Person] { def show(p: Person) = "nobody" } + implicit val showPerson: Show[String, Person] = new Show[String, Person] { + def show(p: Person) = "nobody" + } implicitly[Show[String, Address]].show(Address("Home", Person("John Smith", 44))) }.assert(_ == "Address(line1=Home,occupant=nobody)") |