TypeScript/tests/cases/fourslash/codeFixInferFromUsageFunctionExpression.ts
Nathan Shively-Sanders 4cb210ce2e
Parameters infer from body and call sites (#28342)
* Parameters infer from body usage and call sites

* Function expressions infer from variable decl usages

If the function expression is the initialiser of a variable declaration.

* Update isApplicableFunctionForInference too

* Update baseline
2018-11-05 11:29:16 -08:00

10 lines
204 B
TypeScript

/// <reference path='fourslash.ts' />
////var f = function ([|x |]) {
//// return x
////}
////f(1)
verify.rangeAfterCodeFix("x: number",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0);