Lint for locals living through yield points even though they're not used anymore #4893
Labels
A-lint
Area: New lints
L-correctness
Lint: Belongs in the correctness lint group
T-async-await
Type: Issues related to async/await
I tend to not analyze when or in what order locals go out of scope in sync code unless compiler starts complaining. And it seems OK to mostly not care because everything's going to be dropped shortly. I imagine other people might have the same attitude.
With locals being held across yield points in async methods, it might turn out to be much more problematic. While there are cases when you'd get reminded quickly (e.g.
!Send
local inFuture + Send
) Notable mishaps that I can imagine:The text was updated successfully, but these errors were encountered: