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
Property 'b' is missing in type '{ name: string; a: true}' but required in type 'C'.
Actual behavior: Compilation error:
test.ts(19,7): error TS2322: Type '{ a: true; }' is not assignable to type 'Foo'.
Type '{ a: true; }' is not assignable to type 'B & D'.
Type '{ a: true; }' is not assignable to type 'B'.
Types of property 'a' are incompatible.
Type 'true' is not assignable to type 'false'.
If // b: "foo" line is uncommented, code compiles, as expected.
TypeScript Version: typescript@3.5.0-dev.20190523
Search Terms: "intersection of unions"
Code
Expected behavior: Compilation error:
Actual behavior: Compilation error:
If
// b: "foo"
line is uncommented, code compiles, as expected.Playground Link: link
Related Issues:
The text was updated successfully, but these errors were encountered: