mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SE-0400] All properties with init accessors become part of the memberwise init
Per the clarification during the review thread, all properties with init accessors (including those that do not initialize any underlying storage) are part of the memberwise initializer.
This commit is contained in:
@@ -1300,10 +1300,6 @@ HasMemberwiseInitRequest::evaluate(Evaluator &evaluator,
|
||||
if (!var->isMemberwiseInitialized(/*preferDeclaredProperties=*/true))
|
||||
continue;
|
||||
|
||||
// If init accessors are not involved, we are done.
|
||||
if (initializedViaAccessor.empty())
|
||||
return true;
|
||||
|
||||
// Check whether use of init accessors results in access to uninitialized
|
||||
// properties.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user