diff options
Diffstat (limited to 'tests/untried/pos/implicits-old.scala')
-rw-r--r-- | tests/untried/pos/implicits-old.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/untried/pos/implicits-old.scala b/tests/untried/pos/implicits-old.scala index b0e775086..96edd01f3 100644 --- a/tests/untried/pos/implicits-old.scala +++ b/tests/untried/pos/implicits-old.scala @@ -29,8 +29,8 @@ object Test1579 { class Query[E](val value: E) class Invoker(q: Any) { val foo = null } - implicit def unwrap[C](q: Query[C]) = q.value - implicit def invoker(q: Query[Column]) = new Invoker(q) + implicit def unwrap[C](q: Query[C]): C = q.value + implicit def invoker(q: Query[Column]): Test1579.Invoker = new Invoker(q) val q = new Query(new Column) q.foo @@ -42,9 +42,9 @@ object Test1625 { def unwrap() = x } - implicit def byName[A](x: =>A) = new Wrapped(x) + implicit def byName[A](x: =>A): Test1625.Wrapped = new Wrapped(x) - implicit def byVal[A](x: A) = x + implicit def byVal[A](x: A): A = x def main(args: Array[String]) = { |