You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.letx: {a?: boolean}={};x.a??=true;x.a&&=false;^^^Type'false'isnotassignabletotype'true'.(2322)
Expected behavior:
Works
Actual behavior:
Type 'false' is not assignable to type 'true'.(2322)
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
assignment operator, type
Code
#37255 (comment)
Expected behavior:
Works
Actual behavior:
Type 'false' is not assignable to type 'true'.(2322)
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: