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> {
3540
3540
return false ;
3541
3541
3542
3542
// 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.
3544
3545
auto isPublic = [](const ValueDecl *VD) {
3545
3546
return VD->getFormalAccessScope (VD->getDeclContext (),
3546
3547
/* treatUsableFromInlineAsPublic*/ true )
3547
3548
.isPublic ();
3548
3549
};
3549
- if (isPublic (override ) && !isPublic (overridden))
3550
+ if (override ->getDeclContext ()->getParentModule ()->isResilient () &&
3551
+ isPublic (override ) && !isPublic (overridden))
3550
3552
return false ;
3551
3553
3552
3554
return true ;
You can’t perform that action at this time.
0 commit comments