The huitseeker offer is valid with the option -Ydependent-method-types:
$ scala -Ydependent-method-types
Welcome to Scala version 2.9.0.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).
scala> def processAndReturn[A <: AnyRef](obj: A): obj.type = {
| // work with obj
| obj
| }
processAndReturn: [A <: AnyRef](obj: A)obj.type
scala> processAndReturn("hi")
res1: java.lang.String = hi
, , - , , , . Scala (. Adriaan Moor ). , , ( ) Scala.