Bug Report
🔎 Search Terms
cannot be used as an index type
🕗 Version & Regression Information
- This changed between versions 4.9.5 and 5.0.4
⏯ Playground Link
Playground link with relevant code
💻 Code
interfaceDict{foo: 1bar: 1}typeA=Dict['foo']// workstypeF='foo'typeB=Dict[F]// workstypeFF='foo'extends('foo'|'bar') ? 'foo' : never// in theory, FF === FtypeC=Dict[FF]// not working, Type '"foo"' cannot be used as an index type.(2538)🙁 Actual behavior
type C throws error
🙂 Expected behavior
no error
Bug Report
🔎 Search Terms
cannot be used as an index type
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
type Cthrows error🙂 Expected behavior
no error