We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145132a commit 0e2aff6Copy full SHA for 0e2aff6
tests/pos-scala2/hk-infer.scala
@@ -20,7 +20,7 @@ object ShouldWorkHK {
20
def underlying = xs
21
def BOOP(ys: Seq[M[_]]) = new Booper(xs ++ ys)
22
}
23
- implicit def mkBoop[M[_]](xs: Seq[M[_]]) = new Booper(xs)
+ implicit def mkBoop[M[_]](xs: Seq[M[_]]): ShouldWorkHK.Booper[M] = new Booper(xs)
24
25
def f1 = x BOOP y BOOP x1 BOOP x2
26
@@ -30,7 +30,7 @@ object DoesWorkHK {
30
31
def BOOP(ys: Seq[M[_]]) = new Booper[M](xs ++ ys)
32
33
- implicit def mkBoop[M[_]](xs: Seq[M[_]]) = new Booper[M](xs)
+ implicit def mkBoop[M[_]](xs: Seq[M[_]]): DoesWorkHK.Booper[M] = new Booper[M](xs)
34
35
36
0 commit comments