stc
stc copied to clipboard
4 required error about intersectionAndUnionTypes
The following are the following:
interface A {
a: string;
}
interface B {
b: string;
}
interface C {
c: string;
}
interface D {
d: string;
}
var aob: A | B;
var cod: C | D;
var anb: A & B;
var cnd: C & D;
var x: (A & B) | (C & D);
var y: (A | B) & (C | D);
y = anb;
y = cnd;
cod = x;
aob = x;
next 4 assign expression
If you solve it, you can fix four extras. What I checked is that the allow_missing_file option did not go in properly. Cheer up!