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.7.0-dev.20171220
Code
/** @typedef {U} T */ /** * @template U * @param {U} x * @return {T} */ function f(x) { return x; } /** @type T */ const x = 3;
Expected behavior:
We shouldn't be able to access U in the definition for T. Doing so leads to strange behavior later on.
U
T
Actual behavior:
We can. But then we can't use T anywhere because it leaks U.
The text was updated successfully, but these errors were encountered:
sandersn
Successfully merging a pull request may close this issue.
TypeScript Version: 2.7.0-dev.20171220
Code
Expected behavior:
We shouldn't be able to access
U
in the definition forT
. Doing so leads to strange behavior later on.Actual behavior:
We can. But then we can't use
T
anywhere because it leaksU
.The text was updated successfully, but these errors were encountered: