-
Notifications
You must be signed in to change notification settings - Fork 453
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
I think protocol should inherit from AnyObject. #278
Comments
Maybe swift forum link is https://forums.swift.org/t/class-only-protocols-class-vs-anyobject/11507. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
I think protocol should inherit from AnyObject.
As described in the following article, the specification is such that if you do not inherit AnyObject in protocol, you will get a warning.
Swift forums 'Class-only protocols, class vs AnyObject?'
Actual Behavior
Since the class is inherited by protocol, we get a
warning
.Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: