aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRui Gonçalves <ruippeixotog@gmail.com>2017-06-21 22:38:58 +0100
committerRui Gonçalves <ruippeixotog@gmail.com>2017-06-21 22:38:58 +0100
commit0ccdf446c4c7770e60ede55ab712c8a551e36796 (patch)
treecc2579e18c5c4659d04386abe091de8a5b64e2aa /tests
parent4a6e5eaa04fe54fdda2c501cf79fb2c4c5aaa439 (diff)
downloadmagnolia-0ccdf446c4c7770e60ede55ab712c8a551e36796.tar.gz
magnolia-0ccdf446c4c7770e60ede55ab712c8a551e36796.tar.bz2
magnolia-0ccdf446c4c7770e60ede55ab712c8a551e36796.zip
Reorganize magnolia.Show implicits
Scopes magnolia.Show implicits so that they do not clash with cats' Show type class
Diffstat (limited to 'tests')
-rw-r--r--tests/shared/src/main/scala/magnolia/main.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shared/src/main/scala/magnolia/main.scala b/tests/shared/src/main/scala/magnolia/main.scala
index 014ec33..88b401e 100644
--- a/tests/shared/src/main/scala/magnolia/main.scala
+++ b/tests/shared/src/main/scala/magnolia/main.scala
@@ -1,10 +1,11 @@
package magnolia
import examples._
+import examples.Show._
object Main {
def main(args: Array[String]): Unit = {
- println(Branch(Branch(Leaf(1, null), Leaf(2, null)), Leaf(3, null)).show)
+ println(Branch(Branch(Leaf(1, "a"), Leaf(2, "b")), Leaf(3, "c")).show)
println(List[Entity](Person("John Smith",
Address(List("1 High Street", "London", "SW1A 1AA"),
Country("UK", "GBR", false)))).show)