Skip to content

Commit e40b86f

Browse files
committed
Accepting new baselines
1 parent dc8ad6e commit e40b86f

6 files changed

+13
-7
lines changed

Diff for: tests/baselines/reference/declarationEmitDestructuringArrayPattern2.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var [a11, b11, c11] = [];
2323
>a11 : any
2424
>b11 : any
2525
>c11 : any
26-
>[] : [any, any, any]
26+
>[] : [undefined, undefined, undefined]
2727

2828
var [a2, [b2, { x12, y12: c2 }]=["abc", { x12: 10, y12: false }]] = [1, ["hello", { x12: 5, y12: true }]];
2929
>a2 : number

Diff for: tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var [c0, c1] = [...temp];
9393

9494
var [c2] = [];
9595
>c2 : any
96-
>[] : [any]
96+
>[] : [undefined]
9797

9898
var [[[c3]], [[[[c4]]]]] = [[[]], [[[[]]]]]
9999
>c3 : any

Diff for: tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES6.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var [c0, c1] = [...temp];
9494

9595
var [c2] = [];
9696
>c2 : any
97-
>[] : [any]
97+
>[] : [undefined]
9898

9999
var [[[c3]], [[[[c4]]]]] = [[[]], [[[[]]]]]
100100
>c3 : any

Diff for: tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,6): error TS2461: Type 'undefined' is not an array type.
2+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,12): error TS2461: Type 'undefined' is not an array type.
13
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(4,5): error TS2461: Type 'undefined' is not an array type.
24
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(9,5): error TS2322: Type '[number, number, string]' is not assignable to type '[number, boolean, string]'.
35
Types of property '1' are incompatible.
@@ -11,10 +13,14 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss
1113
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(34,5): error TS2461: Type 'F' is not an array type.
1214

1315

14-
==== tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts (6 errors) ====
16+
==== tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts (8 errors) ====
1517
// V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V,
1618
// S is the type Any, or
1719
var [[a0], [[a1]]] = [] // Error
20+
~~~~
21+
!!! error TS2461: Type 'undefined' is not an array type.
22+
~~~~~~
23+
!!! error TS2461: Type 'undefined' is not an array type.
1824
var [[a2], [[a3]]] = undefined // Error
1925
~~~~~~~~~~~~~~
2026
!!! error TS2461: Type 'undefined' is not an array type.

Diff for: tests/baselines/reference/destructuringWithLiteralInitializers.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function g3([x, y] = []) { }
200200
>g3 : ([x, y]?: [any, any]) => void
201201
>x : any
202202
>y : any
203-
>[] : [any, any]
203+
>[] : [undefined, undefined]
204204

205205
g3();
206206
>g3() : void

Diff for: tests/baselines/reference/downlevelLetConst12.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const bar = 1;
1313

1414
let [baz] = [];
1515
>baz : any
16-
>[] : [any]
16+
>[] : [undefined]
1717

1818
let {a: baz2} = { a: 1 };
1919
>a : any
@@ -24,7 +24,7 @@ let {a: baz2} = { a: 1 };
2424

2525
const [baz3] = []
2626
>baz3 : any
27-
>[] : [any]
27+
>[] : [undefined]
2828

2929
const {a: baz4} = { a: 1 };
3030
>a : any

0 commit comments

Comments
 (0)