Skip to content

Commit 7ce819f

Browse files
Accepted baselines.
1 parent 5323fa6 commit 7ce819f

4 files changed

+41
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tests/cases/conformance/types/contextualTypes/commaOperator/contextuallyTypeCommaOperator03.ts(4,6): error TS7006: Parameter 'a' implicitly has an 'any' type.
2+
3+
4+
==== tests/cases/conformance/types/contextualTypes/commaOperator/contextuallyTypeCommaOperator03.ts (1 errors) ====
5+
6+
let x: (a: string) => string;
7+
8+
x = (a => a, b => b);
9+
~
10+
!!! error TS7006: Parameter 'a' implicitly has an 'any' type.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//// [contextuallyTypeCommaOperator03.ts]
2+
3+
let x: (a: string) => string;
4+
5+
x = (a => a, b => b);
6+
7+
//// [contextuallyTypeCommaOperator03.js]
8+
var x;
9+
x = (function (a) { return a; }, function (b) { return b; });
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tests/cases/conformance/types/contextualTypes/logicalAnd/contextuallyTypeLogicalAnd03.ts(5,6): error TS7006: Parameter 'a' implicitly has an 'any' type.
2+
3+
4+
==== tests/cases/conformance/types/contextualTypes/logicalAnd/contextuallyTypeLogicalAnd03.ts (1 errors) ====
5+
6+
let x: (a: string) => string;
7+
let y = true;
8+
9+
x = (a => a) && (b => b);
10+
~
11+
!!! error TS7006: Parameter 'a' implicitly has an 'any' type.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//// [contextuallyTypeLogicalAnd03.ts]
2+
3+
let x: (a: string) => string;
4+
let y = true;
5+
6+
x = (a => a) && (b => b);
7+
8+
//// [contextuallyTypeLogicalAnd03.js]
9+
var x;
10+
var y = true;
11+
x = (function (a) { return a; }) && (function (b) { return b; });

0 commit comments

Comments
 (0)