title: Define a Swift typealias for any object that implements multiple protocols
body: <p>I'm trying to define a <code>typealias</code> for a UITableViewCell's delegate property that conforms to multiple protocols. This is what I'm trying to do and Swift complains that my syntax is wrong:</p>
  
  <pre><code>// The typealias definition
  typealias CellDelegate = AnyObject&lt;UIPickerViewDataSource, UIPickerViewDelegate&gt;
  
  // In my UITableViewCell subclass:
  weak var delegate: CellDelegate?
  </code></pre>
  
  <p>"Cannot specialize the non-generic type AnyObject" is the error I'm getting. How do I do this correctly?</p>