mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST/Sema] Allow Sendable suppression on Objective-C class declarations
Expressed as `__swift_attr__("~Sendable")` this acts like `: ~Sendable`
on Swift type declarations and supersedes `@_nonSendable(_assumed)`.
Resolves: rdar://140928937
This commit is contained in:
@@ -1248,6 +1248,8 @@ void NominalTypeDecl::prepareConformanceTable() const {
|
||||
|
||||
// Add protocols for any synthesized protocol attributes.
|
||||
for (auto attr : getAttrs().getAttributes<SynthesizedProtocolAttr>()) {
|
||||
if (attr->isSuppressed())
|
||||
continue;
|
||||
addSynthesized(attr->getProtocol());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user