We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MetaProperty
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
never nullish
https://www.typescriptlang.org/play/?target=1&ts=5.6.3#code/MYGwhgzhAEAa0G8BQ1XWAewHYQC4CcBXYXDfACgEpEU06BLAM2nKwFMB3AOlzHwHM2uaAH4R0AMwAmasjry0uABb4MHaABUAngAc2AUXyqKAAwDC2PERJloASSy4QXAMpt+AWzaO2+aPjYAR0J6AJgAcnYOcJNKWgUAX3joJKSgA
class X { constructor() { const p = new.target ?? 32; } }
Incorrectly says
right operand of ?? is unreachable because the left operand is never nullish
No error
No response
The text was updated successfully, but these errors were encountered:
MetaProperty is possibly nullish
d2f36cf
Fixes microsoft#60439
316f0ab
RyanCavanaugh
Successfully merging a pull request may close this issue.
π Search Terms
never nullish
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?target=1&ts=5.6.3#code/MYGwhgzhAEAa0G8BQ1XWAewHYQC4CcBXYXDfACgEpEU06BLAM2nKwFMB3AOlzHwHM2uaAH4R0AMwAmasjry0uABb4MHaABUAngAc2AUXyqKAAwDC2PERJloASSy4QXAMpt+AWzaO2+aPjYAR0J6AJgAcnYOcJNKWgUAX3joJKSgA
π» Code
π Actual behavior
Incorrectly says
π Expected behavior
No error
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: