Bad error message for type used as index #25770
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Domain: Mapped Types
The issue relates to mapped types
Help Wanted
You can do this
Milestone
TypeScript Version: 3.1.0-dev.20180717
Code
Expected behavior:
Error message telling me to use
K in S
.Actual behavior:
src/a.ts:2:13 - error TS2693: 'S' only refers to a type, but is being used as a value here.
The text was updated successfully, but these errors were encountered: