stc icon indicating copy to clipboard operation
stc copied to clipboard

4 required error about intersectionAndUnionTypes

Open sunrabbit123 opened this issue 2 years ago • 0 comments

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!

sunrabbit123 avatar Dec 18 '22 11:12 sunrabbit123