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: playground (2.1.4-insiders.20161201)
Code
let f1: <T>(a: T) => T = a => 42; function f2<T>(a: T): T { return 42; };
Expected behavior:
Since those functions are identical I expect both to behave the same: to fail the type check.
Actual behavior:
The f1 type checks fine.
f1
The text was updated successfully, but these errors were encountered:
Duplicate of #5616
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: playground (2.1.4-insiders.20161201)
Code
Expected behavior:
Since those functions are identical I expect both to behave the same: to fail the type check.
Actual behavior:
The
f1
type checks fine.The text was updated successfully, but these errors were encountered: