Search Terms:
Async, Await, Refactoring, Code Fix, Expression, Arguments
Code
function f() {
return Promise.resolve().then(f ? (x => 1) : (y => 2));
}
Expected behavior:
A refactoring is not offered.
Actual behavior:
A refactoring is offered and the following code is generated:
async function f() {
await Promise.resolve();
}