Improvements
- Delegation along all the interface hierarchy
trait Wrapper {
def unwrap[T](iface: String): T
}
trait Connection extends Wrapper {
def nativeSQL(sql: String): String
}
@Delegate
class MyConnection(delegatee: Connection) extends Connection
MyConnection
will contain delegated implementations for method nativeSQL
but now also for unwrap
.