diff options
Diffstat (limited to 'tests/untried/pos/tcpoly_infer_ticket716.scala')
-rw-r--r-- | tests/untried/pos/tcpoly_infer_ticket716.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/untried/pos/tcpoly_infer_ticket716.scala b/tests/untried/pos/tcpoly_infer_ticket716.scala index 24e8f663b..8268cdad9 100644 --- a/tests/untried/pos/tcpoly_infer_ticket716.scala +++ b/tests/untried/pos/tcpoly_infer_ticket716.scala @@ -12,7 +12,7 @@ object Functor{ } //breaks if uncommented - implicit def lifttoOO[F[_],A](arg:F[A])(implicit ftr: Functor[F]) = new OOFunctor[F,A](arg)(ftr) + implicit def lifttoOO[F[_],A](arg:F[A])(implicit ftr: Functor[F]): OOFunctor[F,A] = new OOFunctor[F,A](arg)(ftr) //works if uncommented //implicit def liftListtoOO[A](arg:List[A]):OOFunctor[List,A] = new OOFunctor[List,A](arg) @@ -21,6 +21,6 @@ object Functor{ object GeneralLiftingDemo extends App { import Functor._ val l = List(1,2,3) - val res = l fmap( 1+) // TODO: should not need explicit call to lifttoOO + val res = l fmap( 1+_) // TODO: should not need explicit call to lifttoOO println("OO : " + res ) } |