mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: BoundGenericType should inherit recursive properties from its parent
I don't think this caused any problems until now, but it will come up once the parent type can itself be a BoundGenericType, because then we need to inherit recursive properties from the generic arguments.
This commit is contained in:
@@ -2621,6 +2621,8 @@ BoundGenericType *BoundGenericType::get(NominalTypeDecl *TheDecl,
|
||||
ASTContext &C = TheDecl->getDeclContext()->getASTContext();
|
||||
llvm::FoldingSetNodeID ID;
|
||||
RecursiveTypeProperties properties;
|
||||
if (Parent)
|
||||
properties |= Parent->getRecursiveProperties();
|
||||
BoundGenericType::Profile(ID, TheDecl, Parent, GenericArgs, properties);
|
||||
|
||||
auto arena = getArena(properties);
|
||||
|
||||
Reference in New Issue
Block a user