-
-
Notifications
You must be signed in to change notification settings - Fork 193
Closed
Labels
for hireGet paid for working on this task: https://quick-lint-js.com/hiring.htmlGet paid for working on this task: https://quick-lint-js.com/hiring.htmlgood first issueGood for newcomers and C++ beginnersGood for newcomers and C++ beginners
Description
Before refactor:
let x;
({x} = y);After refactor:
let ({x} = y); // Bug! This uses an undeclared variable 'x' and calls a function named 'let'.Conditions for this diagnostic:
- Function call with a variable
letas the callee. - Exactly one function argument.
- Function argument is an assignment expression with
=. - Function argument's left-hand side is an object literal.
Metadata
Metadata
Assignees
Labels
for hireGet paid for working on this task: https://quick-lint-js.com/hiring.htmlGet paid for working on this task: https://quick-lint-js.com/hiring.htmlgood first issueGood for newcomers and C++ beginnersGood for newcomers and C++ beginners