Skip to content

[Diagnostics] Do not report an override warning multiple times #7704

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 2 commits into from
Feb 23, 2017

Conversation

KingOfBrian
Copy link
Contributor

This PR fixes a bug I introduced in #6346. If an @objc variable declared in a class is overridden in an extension with computed or observed blocks, multiple errors are generated -- one for each contained decl. There is a flag passed into recordOverride with the intent to restrict this warning for override_decl_extension, but I didn't realize its purpose. I fixed the check and added tests for the various scenarios.

Resolves SR-4024.

@slavapestov
Copy link
Contributor

@swift-ci Please smoke test

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