|
1 | 1 | tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(25,1): error TS2322: Type 'A<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
2 |
| - Type 'A<Foo>' is not assignable to type 'C<Kwah>'. |
3 |
| - Property 'cProp' is missing in type 'A<Foo>'. |
| 2 | + Type 'A<Foo>' is not assignable to type 'A<Bar>'. |
| 3 | + Type 'Foo' is not assignable to type 'Bar'. |
| 4 | + Property 'bar' is missing in type 'Foo'. |
4 | 5 | tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(26,1): error TS2322: Type 'B<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
5 |
| - Type 'B<Foo>' is not assignable to type 'C<Kwah>'. |
6 |
| - Property 'cProp' is missing in type 'B<Foo>'. |
| 6 | + Type 'B<Foo>' is not assignable to type 'B<Baz>'. |
| 7 | + Type 'Foo' is not assignable to type 'Baz'. |
| 8 | + Property 'baz' is missing in type 'Foo'. |
7 | 9 | tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(27,1): error TS2322: Type 'C<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
8 | 10 | Type 'C<Foo>' is not assignable to type 'C<Kwah>'.
|
9 | 11 | Type 'Foo' is not assignable to type 'Kwah'.
|
@@ -48,13 +50,15 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(50,1): error TS2322: Typ
|
48 | 50 | thingOfInterfaces = a;
|
49 | 51 | ~~~~~~~~~~~~~~~~~
|
50 | 52 | !!! error TS2322: Type 'A<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
51 |
| -!!! error TS2322: Type 'A<Foo>' is not assignable to type 'C<Kwah>'. |
52 |
| -!!! error TS2322: Property 'cProp' is missing in type 'A<Foo>'. |
| 53 | +!!! error TS2322: Type 'A<Foo>' is not assignable to type 'A<Bar>'. |
| 54 | +!!! error TS2322: Type 'Foo' is not assignable to type 'Bar'. |
| 55 | +!!! error TS2322: Property 'bar' is missing in type 'Foo'. |
53 | 56 | thingOfInterfaces = b;
|
54 | 57 | ~~~~~~~~~~~~~~~~~
|
55 | 58 | !!! error TS2322: Type 'B<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
56 |
| -!!! error TS2322: Type 'B<Foo>' is not assignable to type 'C<Kwah>'. |
57 |
| -!!! error TS2322: Property 'cProp' is missing in type 'B<Foo>'. |
| 59 | +!!! error TS2322: Type 'B<Foo>' is not assignable to type 'B<Baz>'. |
| 60 | +!!! error TS2322: Type 'Foo' is not assignable to type 'Baz'. |
| 61 | +!!! error TS2322: Property 'baz' is missing in type 'Foo'. |
58 | 62 | thingOfInterfaces = c;
|
59 | 63 | ~~~~~~~~~~~~~~~~~
|
60 | 64 | !!! error TS2322: Type 'C<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
|
0 commit comments