title: Type '{}' is not assignable to type 'Record<Key, Value>'
body: <p>I have the following code:</p>
  <pre><code>const foo = &lt;Key extends keyof any, Value&gt;() {
    type Rec = Record&lt;Key, Value&gt;
    const a: Rec = {}
  }
  </code></pre>
  <p>On the 3rd line typescript given an error that <code>Type '{}' is not assignable to type 'Record&lt;Key, Value&gt;</code>. Why is that happening?</p>