title: Extension of type Array with constraints cannot have an inheritance clause - swift 2
body: <p>In swift 2 I want to extend Array type. I have a <code>JSONDecodable</code> protocol. What i want to say to compiler is conform <code>Array</code>to protocol <code>JSONDecodable</code> if elements of <code>Array</code> are also <code>JSONDecodable</code>. Here is the code:</p>
  
  <pre><code>public protocol JSONDecodable {
      static func createFromJSON(json: [String: AnyObject]) throws -&gt; Self
  }
  
  extension Array: JSONDecodable where Element: JSONDecodable {
  
  }
  </code></pre>
  
  <p>But compiler gives the error: "Extension of type Array with constraints cannot have an inheritance clause"</p>
  
  <p>So is there any other way to accomplish this kind of behavior?</p>