Skip to content

Commit a9f6b91

Browse files
committed
explicit implicits in tests
1 parent 5bf5001 commit a9f6b91

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/test/scala/zio/prelude/NewtypeSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object NewtypeSpec extends DefaultRunnableSpec {
1515
// Age.newtype.Type with Age.Instances
1616
type Age = Age.Type
1717

18-
implicitly[Dummy[Age]]
18+
val _ = implicitly[Dummy[Age]]
1919

2020
def spec =
2121
suite("NewtypeSpec")(

src/test/scala/zio/prelude/TraversableSpec.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ object TraversableSpec extends DefaultRunnableSpec {
104104
},
105105
testM("groupByM") {
106106
check(genList, genIntFunction) { (as, f) =>
107-
val actual = Traversable[List].groupByM(as)(f.map(Option(_)))
107+
val actual = Traversable[List].groupByM(as)(f.map(Option(_))(Covariant.Function1Covariant[Int]))(
108+
IdentityBoth.OptionIdentityBoth,
109+
Covariant.OptionCovariant
110+
)
108111
val expected = Option(
109112
as.groupBy(f)
110113
.toList

0 commit comments

Comments
 (0)