Skip to content

Protocol generic signature cleanup #21730

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

slavapestov
Copy link
Contributor

Calculate the generic signature of a protocol in the AST since it's sufficiently simple, and we were almost doing it (except we threw away the result).

…gnature()

The generic signature of a protocol is simple enough that we can
build it directly when asked. However, be sure to cache it for
future use.
We're looking at the generic signature of the extension, so it must
have been validated at this point.

I don't have a test case for this and maybe it never came up, but
nothing forces it to be validated here so let's make it more robust
by doing it explicitly.
@slavapestov slavapestov requested a review from DougGregor January 9, 2019 03:59
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 09c15c3 into swiftlang:master Jan 9, 2019
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.

1 participant