We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript Version: nightly (2.2.0-dev.20161201)
Code
interface X<T extends string, U> { type: T data: U } type Y = X<'a', { a: string }> type Z = X<'b', { b: string }> type YZ = Y | Z const y: YZ = { type: 'a', data: {} }
Expected behavior:
Error message to show the union type, or at least the best partial match (type Y)
Actual behavior:
Error says the value of y does not match type Z.
The text was updated successfully, but these errors were encountered:
Duplicate #6541
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: nightly (2.2.0-dev.20161201)
Code
Expected behavior:
Error message to show the union type, or at least the best partial match (type Y)
Actual behavior:
Error says the value of y does not match type Z.
The text was updated successfully, but these errors were encountered: