Skip to content

GenericSignatureImpl: Assert we were given type parameters in getSuperclassBound & conformsToProtocol #31712

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
May 12, 2020

Conversation

AnthonyLatsis
Copy link
Collaborator

Follow-up to #31515

@AnthonyLatsis AnthonyLatsis requested a review from CodaFi May 11, 2020 19:21
@@ -456,8 +457,7 @@ GenericSignatureImpl::getConformsTo(Type type) {
}

bool GenericSignatureImpl::conformsToProtocol(Type type, ProtocolDecl *proto) {
Copy link
Collaborator Author

@AnthonyLatsis AnthonyLatsis May 11, 2020

Choose a reason for hiding this comment

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

This method is crying to be renamed to requiresProtocol despite the FIXME it contains.

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test source compatibility

@AnthonyLatsis
Copy link
Collaborator Author

AnthonyLatsis commented May 11, 2020

Sandbox issue

@swift-ci please test source compatibility

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test source compatibility

@AnthonyLatsis
Copy link
Collaborator Author

🍄

@AnthonyLatsis AnthonyLatsis merged commit 3b73065 into swiftlang:master May 12, 2020
@AnthonyLatsis AnthonyLatsis deleted the assert-type-param-2 branch May 12, 2020 05:49
AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request May 20, 2020
AnthonyLatsis added a commit that referenced this pull request May 21, 2020
GenericSignatureImpl, #31712: Plug remaining relevant methods with type param. assertions
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