aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/tcpoly_infer_ticket716.scala
diff options
context:
space:
mode:
authorSamuel Gruetter <samuel.gruetter@epfl.ch>2014-12-14 17:56:36 +0100
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-12-16 13:35:06 +0100
commit5be609fc4e04e3cca5e1435ee41b8cacac9b0513 (patch)
tree7837b8b9f7ad23482e57467ec0987110810cc148 /tests/untried/pos/tcpoly_infer_ticket716.scala
parent981a21816e4cb10b8fbe4edcf0659fb3995d63f8 (diff)
downloaddotty-5be609fc4e04e3cca5e1435ee41b8cacac9b0513.tar.gz
dotty-5be609fc4e04e3cca5e1435ee41b8cacac9b0513.tar.bz2
dotty-5be609fc4e04e3cca5e1435ee41b8cacac9b0513.zip
run srewrite version 88d3cd4126d135617a8189f0a855757d7e2ab806 on tests/untried/pos
Diffstat (limited to 'tests/untried/pos/tcpoly_infer_ticket716.scala')
-rw-r--r--tests/untried/pos/tcpoly_infer_ticket716.scala4
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 )
}