Handle explicit lifetime dependence specifiers in initializers

This commit is contained in:
Meghana Gupta
2024-02-01 10:25:34 -08:00
parent a6dbfa9c53
commit c8ece100ba
19 changed files with 191 additions and 50 deletions

View File

@@ -133,7 +133,8 @@ static ValueDecl *deriveInitDecl(DerivedConformance &derived, Type paramType,
/*Throws=*/false, /*ThrowsLoc=*/SourceLoc(),
/*ThrownType=*/TypeLoc(),
paramList,
/*GenericParams=*/nullptr, parentDC);
/*GenericParams=*/nullptr, parentDC,
/*LifetimeDependentReturnTypeRepr*/ nullptr);
initDecl->setImplicit();