Skip to content
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

class -> AnyObject #19362

Merged
merged 1 commit into from Sep 18, 2018
Merged

class -> AnyObject #19362

merged 1 commit into from Sep 18, 2018

Conversation

Zedd0202
Copy link

@Zedd0202 Zedd0202 commented Sep 18, 2018

OptimizationTips - advice-mark-protocols-that-are-only-satisfied-by-classes-as-class-protocols
According to the swift guide document, the class only protocol is specified as AnyObject.
Although class is a typealias of AnyObject, I think it is better to specify it correctly as AnyObject.

@slavapestov
Copy link
Member

@swift-ci Please smoke test

@slavapestov slavapestov self-assigned this Sep 18, 2018
@slavapestov slavapestov merged commit 29d34f2 into apple:master Sep 18, 2018
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.

None yet

2 participants