4cb210ce2e
* 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
10 lines
204 B
TypeScript
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);
|
|
|