Accepted baselines.
This commit is contained in:
parent
4f32691f3e
commit
33b1e3a39a
2 changed files with 16 additions and 12 deletions
|
@ -4,8 +4,8 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,19): error TS2345: Ar
|
|||
Types of parameters 'items' and 'items' are incompatible.
|
||||
Type 'ConcatArray<[string, boolean]>' is not assignable to type 'ConcatArray<[string, number] | [string, true]>'.
|
||||
Type '[string, boolean]' is not assignable to type '[string, number] | [string, true]'.
|
||||
Type '[string, boolean]' is not assignable to type '[string, true]'.
|
||||
Type 'boolean' is not assignable to type 'true'.
|
||||
Type '[string, boolean]' is not assignable to type '[string, number]'.
|
||||
Type 'boolean' is not assignable to type 'number'.
|
||||
|
||||
|
||||
==== 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
|
|||
!!! error TS2345: Types of parameters 'items' and 'items' are incompatible.
|
||||
!!! error TS2345: Type 'ConcatArray<[string, boolean]>' is not assignable to type 'ConcatArray<[string, number] | [string, true]>'.
|
||||
!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, number] | [string, true]'.
|
||||
!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, true]'.
|
||||
!!! error TS2345: Type 'boolean' is not assignable to type 'true'.
|
||||
!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, number]'.
|
||||
!!! error TS2345: Type 'boolean' is not assignable to type 'number'.
|
||||
for (var [k, v] of map) {
|
||||
k;
|
||||
v;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(25,1): error TS2322: Type 'A<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
||||
Type 'A<Foo>' is not assignable to type 'C<Kwah>'.
|
||||
Property 'cProp' is missing in type 'A<Foo>'.
|
||||
Type 'A<Foo>' is not assignable to type 'A<Bar>'.
|
||||
Type 'Foo' is not assignable to type 'Bar'.
|
||||
Property 'bar' is missing in type 'Foo'.
|
||||
tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(26,1): error TS2322: Type 'B<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
||||
Type 'B<Foo>' is not assignable to type 'C<Kwah>'.
|
||||
Property 'cProp' is missing in type 'B<Foo>'.
|
||||
Type 'B<Foo>' is not assignable to type 'B<Baz>'.
|
||||
Type 'Foo' is not assignable to type 'Baz'.
|
||||
Property 'baz' is missing in type 'Foo'.
|
||||
tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(27,1): error TS2322: Type 'C<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
||||
Type 'C<Foo>' is not assignable to type 'C<Kwah>'.
|
||||
Type 'Foo' is not assignable to type 'Kwah'.
|
||||
|
@ -48,13 +50,15 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(50,1): error TS2322: Typ
|
|||
thingOfInterfaces = a;
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2322: Type 'A<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
||||
!!! error TS2322: Type 'A<Foo>' is not assignable to type 'C<Kwah>'.
|
||||
!!! error TS2322: Property 'cProp' is missing in type 'A<Foo>'.
|
||||
!!! error TS2322: Type 'A<Foo>' is not assignable to type 'A<Bar>'.
|
||||
!!! error TS2322: Type 'Foo' is not assignable to type 'Bar'.
|
||||
!!! error TS2322: Property 'bar' is missing in type 'Foo'.
|
||||
thingOfInterfaces = b;
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2322: Type 'B<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
||||
!!! error TS2322: Type 'B<Foo>' is not assignable to type 'C<Kwah>'.
|
||||
!!! error TS2322: Property 'cProp' is missing in type 'B<Foo>'.
|
||||
!!! error TS2322: Type 'B<Foo>' is not assignable to type 'B<Baz>'.
|
||||
!!! error TS2322: Type 'Foo' is not assignable to type 'Baz'.
|
||||
!!! error TS2322: Property 'baz' is missing in type 'Foo'.
|
||||
thingOfInterfaces = c;
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2322: Type 'C<Foo>' is not assignable to type 'A<Bar> | B<Baz> | C<Kwah>'.
|
||||
|
|
Loading…
Reference in a new issue