title: EXC_BAD_INSTRUCTION object array assign Swift
body: <p>I have an array of Printable objects, but I need them Equatable and AnyObject compliant.</p>
  
  <pre><code>private(set) var items: [Printable] = []
  
  class func withItems&lt;T: AnyObject where T: Equatable, T: Printable&gt;(items: [T], selectedItem: T? = nil) {
     ... instance init ...
     instance.items = items
  }
  </code></pre>
  
  <p>And it result on EXC_BAD_INSTRUCTION:</p>
  
  <blockquote>
    <p>fatal error: array cannot be bridged from Objective-C</p>
  </blockquote>
  
  <p>This is one try to this problems:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/27319588/generic-function-and-attribute-with-equatable-and-printable-as-parameters-in-swi">Generic function and attribute with Equatable and Printable as parameters in Swift</a></li>
  </ul>
  
  <p>why?</p>