-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
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
compiler option "strictNullChecks" working unexpected for Union Type #12638
Labels
Duplicate
An existing issue was already created
Comments
That seems correct. One of the constituents of the union is |
RyanCavanaugh
added
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
labels
Dec 5, 2016
@aluanhaddad , but the following code is not working: let x: {y?: number} = {a : null};
|
seems to be the same request in #12745 |
mhegazy
added
Duplicate
An existing issue was already created
and removed
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
labels
Dec 15, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScript Version: 2.0.10 / nightly (2.2.0-dev.201xxxxx)
Code
Expected behavior:
Compile error raised when "strictNullChecks" is set to true.
Actual behavior:
No compile error. Please note compile error will be raised when union type is not used.
The text was updated successfully, but these errors were encountered: