title: A rest element type must be an array type for generic type in typescript
body: <p>In the code below</p>
  
  <pre><code>const f = &lt;
    Args extends any[] = never
  &gt;(...args: Args) =&gt; {
    const foo: [number, number, ...Args] = [0, 0, ...args]
  }
  </code></pre>
  
  <p>tsc does not like <code>[number, number, ...Args]</code> even though I thought I was constraining the type to be an array with <code>Args extends any[]</code></p>
  
  <p>i get this error</p>
  
  <blockquote>
    <p>A rest element type must be an array type</p>
  </blockquote>