diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-08 22:06:22 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-03-08 22:06:35 +0100 |
commit | aa2f9078d76a21d828a06b8e324d31a502ee505c (patch) | |
tree | bf657e58c1a78357349def2309dd41c0cecdd9a1 /tests/pos/t0786.scala | |
parent | 180dfdc7e81d632e599fb0a545025720e8000573 (diff) | |
download | dotty-aa2f9078d76a21d828a06b8e324d31a502ee505c.tar.gz dotty-aa2f9078d76a21d828a06b8e324d31a502ee505c.tar.bz2 dotty-aa2f9078d76a21d828a06b8e324d31a502ee505c.zip |
Drop special case around Function1
Now only Scala2 mode treats Function1's as implicit conversions. Instead we introduce
a new subclass ImplicitConverter of Function1, instances of which are turned into
implicit conversions.
Diffstat (limited to 'tests/pos/t0786.scala')
-rw-r--r-- | tests/pos/t0786.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pos/t0786.scala b/tests/pos/t0786.scala index b320de0ed..9346afdff 100644 --- a/tests/pos/t0786.scala +++ b/tests/pos/t0786.scala @@ -15,7 +15,7 @@ object ImplicitProblem { def eval = f(nullval[T]).eval + 1 } - def depth[T](n: T)(implicit ev: T => Rep[T]) = n.eval + def depth[T](n: T)(implicit ev: T => Rep[T]) = ev(n).eval def main(args: Array[String]): Unit = { println(depth(nullval[M[Int]])) // (1) this works |