You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/destructuringParameterDeclaration1ES5.errors.txt
+1-19
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,8 @@
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.
!!! 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)
tests/cases/conformance/types/tuple/wideningTuples7.ts(1,20): error TS7010: 'bar', which lacks return-type annotation, implicitly has an '[any]' return type.
0 commit comments