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: 2.4.0
Code
interface Foo { a: string; } interface Bar extends Foo { b: string; c: string; } // d is neither foo nor bar! const d: Foo | Bar = { a: 'lol', b: 'kek', };
Expected behavior:
You would expect the code above to throw an error as d can not be resolved to type foo or type bar.
Actual behavior:
Code compiles without error.
The text was updated successfully, but these errors were encountered:
duplicate of #14383?
Sorry, something went wrong.
Yeah, thanks.
No branches or pull requests
TypeScript Version: 2.4.0
Code
Expected behavior:
You would expect the code above to throw an error as d can not be resolved to type foo or type bar.
Actual behavior:
Code compiles without error.
The text was updated successfully, but these errors were encountered: