Skip to content

[ParseableInterface] Skip extensions with non-public constraints #20146

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

Conversation

jrose-apple
Copy link
Contributor

There are still some issues to work out here, but this is more correct than it was before.

rdar://problem/44662458

@usableFromInline internal func constrainedToUFIStruct() {}
} // CHECK-NEXT: {{^[}]$}}
extension GenericStruct where T == InternalStruct_BAD {
@usableFromInline internal func constrainedToInternalStruct_BAD() {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we even be allowing people to declare this? It's not actually callable.

There are still some issues to work out here, but this is more correct
than it was before.

rdar://problem/44662458
@jrose-apple jrose-apple force-pushed the can-i-request-an-extension branch from a23eb2a to 92ad11d Compare October 31, 2018 00:07
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@slavapestov @harlanhaskins Review ping

Copy link
Contributor

@harlanhaskins harlanhaskins left a comment

Choose a reason for hiding this comment

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

LGTM

@jrose-apple jrose-apple merged commit 0e2f74a into swiftlang:master Nov 7, 2018
@jrose-apple jrose-apple deleted the can-i-request-an-extension branch November 7, 2018 18:41
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.

2 participants