title: Closure with generic parameters
body: <p>I'm having trouble writing the following function as a closure</p>
  <pre class="lang-swift prettyprint-override"><code>func myfunc&lt;S where S: MyProtocol, S: MySuperClass&gt;(param: S) { ... }
  </code></pre>
  <p>I tried</p>
  <pre><code>let myClosure = {&lt;S where S: MyProtocol, S: MySuperClass&gt;(param: S) in ... }
  </code></pre>
  <p>, but it doesn't work.</p>
  <p>Any suggestions of how I can accomplish this?</p>