prefer_final_locals
false positive in for-loop destructured records
#4539
Labels
false-positive
set-internal-available
Affects a rule that is allowed internally (but not generally required or recommended).
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
See: dart-lang/sdk#52820
TL;DR: the lint should only fire if all declared variables can be changed to final
Repro:
(Should not flag
b
.)The text was updated successfully, but these errors were encountered: