mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
@retroactive conformance syntax and checking (#36068)
This commit is contained in:
@@ -736,7 +736,8 @@ public:
|
||||
// Create a synthesized ExtensionDecl for the conformance.
|
||||
ASTContext &ctx = M->getASTContext();
|
||||
auto inherits = ctx.AllocateCopy(llvm::makeArrayRef(InheritedEntry(
|
||||
TypeLoc::withoutLoc(proto->getDeclaredInterfaceType()), isUnchecked)));
|
||||
TypeLoc::withoutLoc(proto->getDeclaredInterfaceType()), isUnchecked,
|
||||
/*isRetroactive=*/false)));
|
||||
auto extension =
|
||||
ExtensionDecl::create(ctx, SourceLoc(), nullptr, inherits,
|
||||
nominal->getModuleScopeContext(), nullptr);
|
||||
|
||||
Reference in New Issue
Block a user