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/genericRestParameters1.errors.txt
+8
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
1
tests/cases/conformance/types/rest/genericRestParameters1.ts(22,1): error TS2556: Expected 3 arguments, but got 1 or more.
2
2
tests/cases/conformance/types/rest/genericRestParameters1.ts(31,1): error TS2556: Expected 3 arguments, but got 1 or more.
3
3
tests/cases/conformance/types/rest/genericRestParameters1.ts(133,40): error TS2344: Type '(...args: T) => void' does not satisfy the constraint '(...args: any[]) => any'.
4
+
Types of parameters 'args' and 'args' are incompatible.
5
+
Type 'any[]' is not assignable to type 'T'.
4
6
tests/cases/conformance/types/rest/genericRestParameters1.ts(134,51): error TS2344: Type 'new (...args: T) => void' does not satisfy the constraint 'new (...args: any[]) => any'.
7
+
Types of parameters 'args' and 'args' are incompatible.
8
+
Type 'any[]' is not assignable to type 'T'.
5
9
tests/cases/conformance/types/rest/genericRestParameters1.ts(135,23): error TS2344: Type 'Function' does not satisfy the constraint '(...args: any[]) => any'.
6
10
Type 'Function' provides no match for the signature '(...args: any[]): any'.
7
11
tests/cases/conformance/types/rest/genericRestParameters1.ts(164,1): error TS2322: Type '(a: never) => void' is not assignable to type '(...args: any[]) => void'.
Copy file name to clipboardexpand all lines: tests/baselines/reference/genericRestParameters2.errors.txt
+6
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
1
tests/cases/conformance/types/rest/genericRestParameters2.ts(71,40): error TS2344: Type '(x: string, ...args: T) => void' does not satisfy the constraint '(...args: any[]) => any'.
2
+
Types of parameters 'x' and 'args' are incompatible.
3
+
Type 'any[]' is not assignable to type '[string, ...any[]]'.
Copy file name to clipboardexpand all lines: tests/baselines/reference/parameterInitializersForwardReferencing1_es6.errors.txt
+14-1
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,31 @@
1
+
tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts(3,20): error TS2373: Initializer of parameter 'bar' cannot reference identifier 'foo' declared after it.
2
+
tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts(8,27): error TS2373: Initializer of parameter 'bar' cannot reference identifier 'foo' declared after it.
3
+
tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts(13,20): error TS2373: Initializer of parameter 'bar' cannot reference identifier 'foo' declared after it.
1
4
tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts(21,18): error TS2372: Parameter 'a' cannot be referenced in its initializer.
2
5
tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts(25,22): error TS2372: Parameter 'async' cannot be referenced in its initializer.
6
+
tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts(29,15): error TS2448: Block-scoped variable 'foo' used before its declaration.
0 commit comments