allow type initializers to be 'async'

implicit calls to an async super.init are not allowed
This commit is contained in:
Kavon Farvardin
2021-01-12 17:24:06 -08:00
parent 7089bf603d
commit 4f6eb85fe3
19 changed files with 74 additions and 38 deletions

View File

@@ -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);