You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Observation] Add property definite initialization support (swiftlang#65984)
* [Observation] Transition to peer macros instead of arbitrary members
* [Observation] Lift the initializer requirement by utilizing init accessors for fully formed definite initialization
* [Observation] Gate enabling of peer macros by flag
* [Observation] Enable feature for InitAccessors in the observation tests
* [Observation] Add tests to validate memberwise and definite initialization
if property.hasMacroApplication(ObservableMacro.ignoredMacroName){continue}
209
-
if property.initializer ==nil{
210
-
context.addDiagnostics(from:DiagnosticsError(syntax: property, message:"@Observable requires property '\(property.identifier?.text ??"")' to have an initial value", id:.missingInitializer), node: property)
0 commit comments