aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0786.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t0786.scala')
-rw-r--r--tests/pos/t0786.scala2
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