diff options
author | Jon Pretty <jon.pretty@propensive.com> | 2017-11-10 15:23:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 15:23:38 +0000 |
commit | 9c90d3f393d18ef0f8f27751a8328913dad7ad25 (patch) | |
tree | 345f7f8a497f5fc12e2aaad9cf9e8119e0059d62 /tests/src/main | |
parent | 657d2fb2c16b75c790bf3c3a63d1f830a42893db (diff) | |
parent | 2ae9a65ed0b773f77b5cd8d8c134a125bbaccf5d (diff) | |
download | magnolia-9c90d3f393d18ef0f8f27751a8328913dad7ad25.tar.gz magnolia-9c90d3f393d18ef0f8f27751a8328913dad7ad25.tar.bz2 magnolia-9c90d3f393d18ef0f8f27751a8328913dad7ad25.zip |
Merge pull request #27 from propensive/allow-type-constructor-in-supertrait
Allow type constructor in supertrait
Diffstat (limited to 'tests/src/main')
-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)") |