diff options
Diffstat (limited to 'tests/untried/pos/t0786.scala')
-rw-r--r-- | tests/untried/pos/t0786.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/untried/pos/t0786.scala b/tests/untried/pos/t0786.scala index 4cd09f4a1..b347b0bc5 100644 --- a/tests/untried/pos/t0786.scala +++ b/tests/untried/pos/t0786.scala @@ -7,11 +7,11 @@ object ImplicitProblem { def eval: Int } - implicit def toRep0(n: Int) = new Rep[Int] { + implicit def toRep0(n: Int): ImplicitProblem.Rep[Int] = new Rep[Int] { def eval = 0 } - implicit def toRepN[T](n: M[T])(implicit f: T => Rep[T]) = new Rep[M[T]] { + implicit def toRepN[T](n: M[T])(implicit f: T => Rep[T]): ImplicitProblem.Rep[ImplicitProblem.M[T]] = new Rep[M[T]] { def eval = f(nullval[T]).eval + 1 } |