Skip to content

Commit 01bec1d

Browse files
committed
AST: Stop copying formal access onto OpaqueTypeDecl on synthesis.
`ValueDecl::getEffectiveAccess()` now handles `OpaqueTypeDecl` directly.
1 parent bfcbc95 commit 01bec1d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Sema/TypeCheckGeneric.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ OpaqueResultTypeRequest::evaluate(Evaluator &evaluator,
213213
auto opaqueDecl = OpaqueTypeDecl::get(
214214
originatingDecl, genericParams, parentDC, interfaceSignature,
215215
opaqueReprs);
216-
opaqueDecl->copyFormalAccessFrom(originatingDecl);
217216
if (auto originatingSig = originatingDC->getGenericSignatureOfContext()) {
218217
opaqueDecl->setGenericSignature(originatingSig);
219218
} else {

0 commit comments

Comments
 (0)