mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Require that concurrently-executed local functions be @concurrent.
This commit is contained in:
@@ -6768,6 +6768,10 @@ bool AbstractFunctionDecl::argumentNameIsAPIByDefault() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AbstractFunctionDecl::isConcurrent() const {
|
||||
return getAttrs().hasAttribute<ConcurrentAttr>();
|
||||
}
|
||||
|
||||
bool AbstractFunctionDecl::isAsyncHandler() const {
|
||||
auto func = dyn_cast<FuncDecl>(this);
|
||||
if (!func)
|
||||
|
||||
Reference in New Issue
Block a user