mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
implement parsing for effects specifiers on 'get' accessors
An effectful 'get' accessor must be the only accessor for the property.
This commit is contained in:
@@ -3157,7 +3157,8 @@ public:
|
||||
decls_block::AccessorLayout::readRecord(scratch, contextID, isImplicit,
|
||||
isStatic, rawStaticSpelling, isObjC,
|
||||
rawMutModifier,
|
||||
hasForcedStaticDispatch, throws,
|
||||
hasForcedStaticDispatch,
|
||||
async, throws,
|
||||
genericSigID,
|
||||
resultInterfaceTypeID,
|
||||
isIUO,
|
||||
@@ -3275,7 +3276,7 @@ public:
|
||||
} else {
|
||||
auto *accessor = AccessorDecl::createDeserialized(
|
||||
ctx, accessorKind, storage, staticSpelling.getValue(),
|
||||
/*Throws=*/throws, genericParams, resultType, DC);
|
||||
async, throws, genericParams, resultType, DC);
|
||||
accessor->setIsTransparent(isTransparent);
|
||||
|
||||
fn = accessor;
|
||||
|
||||
Reference in New Issue
Block a user