594430f113
* Infer from arrows from usage. Previously only function expressions were, and only those with an easily accessible name. Now any arrow function or function expression will infer from usage. * remove isApplicableFunctionForInference *all* functions are applicable for inference now.
14 lines
266 B
TypeScript
14 lines
266 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////const f = promise => {
|
|
//// await promise;
|
|
////}
|
|
|
|
verify.codeFix({
|
|
index: 0,
|
|
description: "Add async modifier to containing function",
|
|
newFileContent:
|
|
`const f = async promise => {
|
|
await promise;
|
|
}`,
|
|
});
|