mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
allow type initializers to be 'async'
implicit calls to an async super.init are not allowed
This commit is contained in:
@@ -130,6 +130,7 @@ static ValueDecl *deriveInitDecl(DerivedConformance &derived, Type paramType,
|
||||
auto *initDecl =
|
||||
new (C) ConstructorDecl(name, SourceLoc(),
|
||||
/*Failable=*/true, /*FailabilityLoc=*/SourceLoc(),
|
||||
/*Async=*/false, /*AsyncLoc=*/SourceLoc(),
|
||||
/*Throws=*/false, /*ThrowsLoc=*/SourceLoc(),
|
||||
paramList,
|
||||
/*GenericParams=*/nullptr, parentDC);
|
||||
|
||||
Reference in New Issue
Block a user