mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-05 00:32:41 -05:00
Accepted baselines.
This commit is contained in:
@@ -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; });
|
||||
Reference in New Issue
Block a user