Skip to content

Commit b4056c8

Browse files
committed
Treat access note @objc as ineligible for @nonobjc
1 parent e22b6d6 commit b4056c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5271,7 +5271,7 @@ canSuppressPotentialWitnessWarningWithNonObjC(ValueDecl *requirement,
52715271

52725272
// ... but not explicitly.
52735273
if (auto attr = witness->getAttrs().getAttribute<ObjCAttr>()) {
5274-
if (!attr->isImplicit()) return false;
5274+
if (!attr->isImplicit() || attr->getAddedByAccessNote()) return false;
52755275
}
52765276

52775277
// And not because it has to be for overriding.

0 commit comments

Comments
 (0)