mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #35264 from DougGregor/concurrent-value-protocol
[Concurrency] Introduce "ConcurrentValue" protocol and checking.
This commit is contained in:
@@ -1168,7 +1168,8 @@ public:
|
||||
DeclAttribute::canAttributeAppearOnDeclKind(DeclAttrKind::DAK_Available,
|
||||
D->getDeclKind()) &&
|
||||
!D->getIntroducingVersion().hasOSAvailability() &&
|
||||
!D->hasDeclAttribute(DeclAttrKind::DAK_AlwaysEmitIntoClient)) {
|
||||
!D->hasDeclAttribute(DeclAttrKind::DAK_AlwaysEmitIntoClient) &&
|
||||
!D->hasDeclAttribute(DeclAttrKind::DAK_Marker)) {
|
||||
D->emitDiag(D->getLoc(), diag::new_decl_without_intro);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user