Accepted baselines.
This commit is contained in:
parent
5323fa6783
commit
7ce819f4c7
4 changed files with 41 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
tests/cases/conformance/types/contextualTypes/commaOperator/contextuallyTypeCommaOperator03.ts(4,6): error TS7006: Parameter 'a' implicitly has an 'any' type.
|
||||
|
||||
|
||||
==== tests/cases/conformance/types/contextualTypes/commaOperator/contextuallyTypeCommaOperator03.ts (1 errors) ====
|
||||
|
||||
let x: (a: string) => string;
|
||||
|
||||
x = (a => a, b => b);
|
||||
~
|
||||
!!! error TS7006: Parameter 'a' implicitly has an 'any' type.
|
|
@ -0,0 +1,9 @@
|
|||
//// [contextuallyTypeCommaOperator03.ts]
|
||||
|
||||
let x: (a: string) => string;
|
||||
|
||||
x = (a => a, b => b);
|
||||
|
||||
//// [contextuallyTypeCommaOperator03.js]
|
||||
var x;
|
||||
x = (function (a) { return a; }, function (b) { return b; });
|
|
@ -0,0 +1,11 @@
|
|||
tests/cases/conformance/types/contextualTypes/logicalAnd/contextuallyTypeLogicalAnd03.ts(5,6): error TS7006: Parameter 'a' implicitly has an 'any' type.
|
||||
|
||||
|
||||
==== tests/cases/conformance/types/contextualTypes/logicalAnd/contextuallyTypeLogicalAnd03.ts (1 errors) ====
|
||||
|
||||
let x: (a: string) => string;
|
||||
let y = true;
|
||||
|
||||
x = (a => a) && (b => b);
|
||||
~
|
||||
!!! error TS7006: Parameter 'a' implicitly has an 'any' type.
|
11
tests/baselines/reference/contextuallyTypeLogicalAnd03.js
Normal file
11
tests/baselines/reference/contextuallyTypeLogicalAnd03.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
//// [contextuallyTypeLogicalAnd03.ts]
|
||||
|
||||
let x: (a: string) => string;
|
||||
let y = true;
|
||||
|
||||
x = (a => a) && (b => b);
|
||||
|
||||
//// [contextuallyTypeLogicalAnd03.js]
|
||||
var x;
|
||||
var y = true;
|
||||
x = (function (a) { return a; }) && (function (b) { return b; });
|
Loading…
Reference in a new issue