diff options
Diffstat (limited to 'tests/untried/pos/implicits-new.scala')
-rw-r--r-- | tests/untried/pos/implicits-new.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/untried/pos/implicits-new.scala b/tests/untried/pos/implicits-new.scala index d5bf0ecfd..f6b69c707 100644 --- a/tests/untried/pos/implicits-new.scala +++ b/tests/untried/pos/implicits-new.scala @@ -32,8 +32,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 @@ -45,9 +45,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]) = { |