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
when adding new declarations to any data type (class, struct, actor)
it will be nice if the compiler suggest fix-its to init the newly added declarations
Proposed solution
it will be nice if the compiler provides two fix-its
appearing on the init that if applied, will add the new missing parameters
appearing on the closing brace of init, to add self.foo=foo
structFoo{letname:Stringletage:Int //<- newly added variable
init(name:String){self.name = name
}}
Motivation
when adding new declarations to any data type (class, struct, actor)
it will be nice if the compiler suggest fix-its to init the newly added declarations
Proposed solution
it will be nice if the compiler provides two fix-its
init
that if applied, will add the new missing parametersself.foo=foo
the two fix-its should be:
Alternatives considered
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: