|
1 |
| -tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts(32,4): error TS2345: Argument of type '[string, number, number]' is not assignable to parameter of type '[undefined, null, undefined]'. |
2 |
| - Types of property '0' are incompatible. |
3 |
| - Type 'string' is not assignable to type 'undefined'. |
4 |
| -tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts(33,4): error TS2345: Argument of type '[[string], number, [[boolean, boolean]]]' is not assignable to parameter of type '[[undefined], undefined, [[undefined, undefined]]]'. |
5 |
| - Types of property '0' are incompatible. |
6 |
| - Type '[string]' is not assignable to type '[undefined]'. |
7 |
| - Types of property '0' are incompatible. |
8 |
| - Type 'string' is not assignable to type 'undefined'. |
9 | 1 | tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts(62,10): error TS2393: Duplicate function implementation.
|
10 | 2 | tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts(63,10): error TS2393: Duplicate function implementation.
|
11 | 3 |
|
12 | 4 |
|
13 |
| -==== tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts (4 errors) ==== |
| 5 | +==== tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts (2 errors) ==== |
14 | 6 | // A parameter declaration may specify either an identifier or a binding pattern.
|
15 | 7 | // The identifiers specified in parameter declarations and binding patterns
|
16 | 8 | // in a parameter list must be unique within that parameter list.
|
@@ -43,17 +35,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.
|
43 | 35 | b2("string", { x: 200, y: "string" });
|
44 | 36 | b2("string", { x: 200, y: true });
|
45 | 37 | b6(["string", 1, 2]); // Shouldn't be an error
|
46 |
| - ~~~~~~~~~~~~~~~~ |
47 |
| -!!! error TS2345: Argument of type '[string, number, number]' is not assignable to parameter of type '[undefined, null, undefined]'. |
48 |
| -!!! error TS2345: Types of property '0' are incompatible. |
49 |
| -!!! error TS2345: Type 'string' is not assignable to type 'undefined'. |
50 | 38 | b7([["string"], 1, [[true, false]]]); // Shouldn't be an error
|
51 |
| - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
52 |
| -!!! error TS2345: Argument of type '[[string], number, [[boolean, boolean]]]' is not assignable to parameter of type '[[undefined], undefined, [[undefined, undefined]]]'. |
53 |
| -!!! error TS2345: Types of property '0' are incompatible. |
54 |
| -!!! error TS2345: Type '[string]' is not assignable to type '[undefined]'. |
55 |
| -!!! error TS2345: Types of property '0' are incompatible. |
56 |
| -!!! error TS2345: Type 'string' is not assignable to type 'undefined'. |
57 | 39 |
|
58 | 40 |
|
59 | 41 | // If the declaration specifies a binding pattern, the parameter type is the implied type of that binding pattern (section 5.1.3)
|
|
0 commit comments