File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3540,13 +3540,15 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
35403540 return false ;
35413541
35423542 // In a public-override-internal case, the override doesn't have ABI
3543- // implications.
3543+ // implications. This corresponds to hiding the override keyword from the
3544+ // module interface.
35443545 auto isPublic = [](const ValueDecl *VD) {
35453546 return VD->getFormalAccessScope (VD->getDeclContext (),
35463547 /* treatUsableFromInlineAsPublic*/ true )
35473548 .isPublic ();
35483549 };
3549- if (isPublic (override ) && !isPublic (overridden))
3550+ if (override ->getDeclContext ()->getParentModule ()->isResilient () &&
3551+ isPublic (override ) && !isPublic (overridden))
35503552 return false ;
35513553
35523554 return true ;
You can’t perform that action at this time.
0 commit comments