Skip to content

Sema: Print property accessors for non-mutating setter requirements #27896

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

AnthonyLatsis
Copy link
Collaborator

Follow-up to #24277

@jrose-apple

@@ -2627,13 +2627,13 @@ printRequirementStub(ValueDecl *Requirement, DeclContext *Adopter,
Options.FunctionDefinitions = true;
Options.PrintAccessorBodiesInProtocols = true;

bool AdopterIsClass = isa<ClassDecl>(Adopter->getAsDecl());
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't going to be the right test; the adopter might be an extension of a class. What was wrong with the previous one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My bad, thanks. To be honest, the previous one seemed inelegant to me.

@AnthonyLatsis AnthonyLatsis force-pushed the proto-stubs-nonmutating-set branch from deb1517 to 5d0db67 Compare October 28, 2019 19:51
@AnthonyLatsis AnthonyLatsis force-pushed the proto-stubs-nonmutating-set branch from 5d0db67 to 9b77ae5 Compare October 28, 2019 19:58
@jrose-apple
Copy link
Contributor

@swift-ci Please smoke test

@jrose-apple jrose-apple self-assigned this Oct 28, 2019
@jrose-apple jrose-apple merged commit cc60f2c into swiftlang:master Oct 28, 2019
@AnthonyLatsis AnthonyLatsis deleted the proto-stubs-nonmutating-set branch February 3, 2021 05:25
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