title: What is "not assignable to parameter of type never" error in TypeScript?
body: <p>Code is:</p>
  
  <pre><code>const foo = (foo: string) =&gt; {
    const result = []
    result.push(foo)
  }
  </code></pre>
  
  <p>I get the following TS error:</p>
  
  <blockquote>
    <p>[ts] Argument of type 'string' is not assignable to parameter of type 'never'.</p>
  </blockquote>
  
  <p>What am I doing wrong? Is this a bug?</p>