-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 2.9.0-dev
Code
type Wat<T extends string> = { [x: T]: string }; // Error: An index signature cannot be a union type ?!?
Expected behavior:
Meaningful error message.
Actual behavior:
Error message complains about a union type, but there is no union type.
Related Issues:
The error message is caused by #20726. There is no verification that the type is actually a union type.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this