Unnecessary, misleading expansion lines for a keyof generic used in a template literal #47668
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
Bug Report
π Search Terms
keyof generic template literal type symbol
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Notice the fourth
Type 'keyof T'
line onward. Seems unnecesary?π Expected behavior
Note that if you replace
keyof T
withstring | number | symbol
, the error message is the expected behavior. [playground link with replacement]The text was updated successfully, but these errors were encountered: