quick-lint-js icon indicating copy to clipboard operation
quick-lint-js copied to clipboard

False positive on 'await await[0]' in top level

Open strager opened this issue 3 years ago • 0 comments

let await = [Promise.resolve('hello')];
console.log(await await[0]);

quick-lint-js incorrectly reports redundant 'await' [E0266] for the above code. However, there is no redundant await.

strager avatar Jul 15 '22 22:07 strager