mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Simplify tracking the foreign language of an @objc decl
Apply review comments from #80744.
This commit is contained in:
@@ -638,8 +638,7 @@ configureInheritedDesignatedInitAttributes(ClassDecl *classDecl,
|
||||
std::optional<ForeignErrorConvention> errorConvention;
|
||||
if (superclassCtor->isObjC() &&
|
||||
!isRepresentableInLanguage(ctor, ObjCReason::MemberOfObjCSubclass,
|
||||
asyncConvention, errorConvention,
|
||||
ForeignLanguage::ObjectiveC))
|
||||
asyncConvention, errorConvention))
|
||||
ctor->getAttrs().add(new (ctx) NonObjCAttr(/*isImplicit=*/true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user