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.5.3
Code
interface X { x: number } interface Y { x: number y: number } function f(x: Y) { } const g : (x: X) => void = f
Expected behavior:
I would expect g to have an error because f can get called without the necessary y property...
g
y
Actual behavior:
...but there isnt.
The text was updated successfully, but these errors were encountered:
See #18654.
Sorry, something went wrong.
awesome! thanks. is this coming out with 2.6 or 2.7?
It's in the 2.6 release.
https://blogs.msdn.microsoft.com/typescript/2017/10/12/announcing-typescript-2-6-rc/
No branches or pull requests
TypeScript Version: 2.5.3
Code
Expected behavior:
I would expect
g
to have an error because f can get called without the necessaryy
property...Actual behavior:
...but there isnt.
The text was updated successfully, but these errors were encountered: