[SR-3310] Property observer/Setter patterns that should always error #45898
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
Additional Detail from JIRA
md5: dc81bc16cefec566c317ed7e128c744d
Issue Description:
Swift should warn or, preferably, error on `set(oldValue)`, `willSet(oldValue)`, and `didSet(newValue)`, since these can be considered to be always a priori written in error.
The text was updated successfully, but these errors were encountered: