Lint/UselessAssignment
false positive when variables are used in blocks with numbered parameters
#11485
Labels
Lint/UselessAssignment
false positive when variables are used in blocks with numbered parameters
#11485
Expected behavior
Variables that are set and then used inside blocks with numbered parameters should not be marked as unused.
It looks like it was caused by b48ebef - I tried the commit before and it passed. This also causes
Lint/UnusedMethodArgument
andLint/UnusedBlockArgument
warnings.Actual behavior
Steps to reproduce the problem
Changing it to a normal block with named arguments passes:
RuboCop version
Tested with both 1.44 and current master (99c8b17)
The text was updated successfully, but these errors were encountered: