Skip to content

Commit 33b1e3a

Browse files
Accepted baselines.
1 parent 4f32691 commit 33b1e3a

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

tests/baselines/reference/for-of39.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,19): error TS2345: Ar
44
Types of parameters 'items' and 'items' are incompatible.
55
Type 'ConcatArray<[string, boolean]>' is not assignable to type 'ConcatArray<[string, number] | [string, true]>'.
66
Type '[string, boolean]' is not assignable to type '[string, number] | [string, true]'.
7-
Type '[string, boolean]' is not assignable to type '[string, true]'.
8-
Type 'boolean' is not assignable to type 'true'.
7+
Type '[string, boolean]' is not assignable to type '[string, number]'.
8+
Type 'boolean' is not assignable to type 'number'.
99

1010

1111
==== tests/cases/conformance/es6/for-ofStatements/for-of39.ts (1 errors) ====
@@ -17,8 +17,8 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,19): error TS2345: Ar
1717
!!! error TS2345: Types of parameters 'items' and 'items' are incompatible.
1818
!!! error TS2345: Type 'ConcatArray<[string, boolean]>' is not assignable to type 'ConcatArray<[string, number] | [string, true]>'.
1919
!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, number] | [string, true]'.
20-
!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, true]'.
21-
!!! error TS2345: Type 'boolean' is not assignable to type 'true'.
20+
!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, number]'.
21+
!!! error TS2345: Type 'boolean' is not assignable to type 'number'.
2222
for (var [k, v] of map) {
2323
k;
2424
v;

tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
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'.
45
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'.
79
tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(27,1): error TS2322: Type 'C<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
810
Type 'C<Foo>' is not assignable to type 'C<Kwah>'.
911
Type 'Foo' is not assignable to type 'Kwah'.
@@ -48,13 +50,15 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(50,1): error TS2322: Typ
4850
thingOfInterfaces = a;
4951
~~~~~~~~~~~~~~~~~
5052
!!! 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'.
5356
thingOfInterfaces = b;
5457
~~~~~~~~~~~~~~~~~
5558
!!! 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'.
5862
thingOfInterfaces = c;
5963
~~~~~~~~~~~~~~~~~
6064
!!! error TS2322: Type 'C<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.

0 commit comments

Comments
 (0)