[SR-8536] Warn on member assignments capturing self #51055
Labels
compiler
The Swift compiler itself
good first issue
Good for newcomers
improvement
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: cb331d15432b248f57b7b7bce4d077f7
Issue Description:
In the example above, we should warn about capturing `self` implicitly and, rather than suggest the user make it explicit, probably offer a fixit that provides a closure with a weak or unowned capture.
The text was updated successfully, but these errors were encountered: