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.1.4
Code
function foo(): string { throwError(); } function throwError(): never { throw new Error(); }
Expected behavior: Compiling perfectly :)
Actual behavior: Expect a return value but we already know that the throwError() function never gonna step after.
The text was updated successfully, but these errors were encountered:
Discussed at #12825, #8655, #12883, etc
Sorry, something went wrong.
: never
No branches or pull requests
TypeScript Version: 2.1.4
Code
Expected behavior:
Compiling perfectly :)
Actual behavior:
Expect a return value but we already know that the throwError() function never gonna step after.
The text was updated successfully, but these errors were encountered: