mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #66283 from xedin/init-accessors
[Parse/Sema/SIL] Implementation of init accessors feature (under a flag)
This commit is contained in:
@@ -4493,6 +4493,7 @@ bool InvalidMemberRefOnExistential::diagnoseAsError() {
|
||||
case AccessorKind::Set:
|
||||
case AccessorKind::WillSet:
|
||||
case AccessorKind::DidSet:
|
||||
case AccessorKind::Init:
|
||||
// Ignore references to the 'newValue' or 'oldValue' parameters.
|
||||
if (AccessorParams.front() == PD) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user