Accepted baselines.

This commit is contained in:
Daniel Rosenwasser 2016-01-04 23:02:11 -05:00
parent 5323fa6783
commit 7ce819f4c7
4 changed files with 41 additions and 0 deletions

View file

@ -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.

View file

@ -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; });

View file

@ -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.

View 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; });