Skip to content

@objc extension makes even 'private' members '@objc' #22436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2019

Conversation

jrose-apple
Copy link
Contributor

This regressed in #21657, when we started using a helper function in more places.

rdar://problem/47869562

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test source compatibility

return ObjCReason(ObjCReason::MemberOfObjCExtension);
if (isMemberOfObjCMembersClass(VD) && canInferImplicitObjC())
if (isMemberOfObjCMembersClass(VD) && canInferImplicitObjC(false))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these would both benefit from /*what this means*/ comments.

@@ -1177,7 +1177,7 @@ Optional<ObjCReason> shouldMarkAsObjC(const ValueDecl *VD, bool allowImplicit) {
// (and extensions thereof) whose class hierarchies originate in Objective-C,
// e.g., which derive from NSObject, so long as the members have internal
// access or greater.
if (!canInferImplicitObjC())
if (!canInferImplicitObjC(false))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

This regressed in a8fb416, when we started using a helper function
in more places.

rdar://problem/47869562
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple jrose-apple merged commit c8acb7e into swiftlang:master Feb 7, 2019
@jrose-apple jrose-apple deleted the i-object branch February 7, 2019 18:11
jrose-apple added a commit to jrose-apple/swift that referenced this pull request Feb 7, 2019
This regressed in a8fb416, when we started using a helper function
in more places.

rdar://problem/47869562
(cherry picked from commit c8acb7e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants