mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
allow type initializers to be 'async'
implicit calls to an async super.init are not allowed
This commit is contained in:
@@ -141,9 +141,11 @@ static ConcreteDeclRef generateDeclRefForSpecializedCXXFunctionTemplate(
|
||||
if (isa<ConstructorDecl>(oldDecl)) {
|
||||
DeclName ctorName(ctx, DeclBaseName::createConstructor(), newParamList);
|
||||
auto newCtorDecl = ConstructorDecl::createImported(
|
||||
ctx, specialized, ctorName, oldDecl->getLoc(), /*failable=*/false,
|
||||
/*failabilityLoc=*/SourceLoc(), /*throws=*/false,
|
||||
/*throwsLoc=*/SourceLoc(), newParamList, /*genericParams=*/nullptr,
|
||||
ctx, specialized, ctorName, oldDecl->getLoc(),
|
||||
/*failable=*/false, /*failabilityLoc=*/SourceLoc(),
|
||||
/*Async=*/false, /*AsyncLoc=*/SourceLoc(),
|
||||
/*throws=*/false, /*throwsLoc=*/SourceLoc(),
|
||||
newParamList, /*genericParams=*/nullptr,
|
||||
oldDecl->getDeclContext());
|
||||
return ConcreteDeclRef(newCtorDecl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user