Repository navigation
Ignore more locations of static references not using 'Self' in classes - #3771
Conversation
|
The changes cause an exception for declarations involving |
This issue and the compilation failures reported in #3768 should be fixed with the latest commit. The failed run on the Swift repository reported by @SwiftLintBot above is caused by the file A possible solution is to check whether the |
I've taken the approach with SwiftLint that it only really makes sense to operate on valid Swift code, so this is fine. |
5ee227b to
ae35561
Compare
|
Thanks for these fixes! |
Static references with `Self` are not allowed to define * default values of properties, * annotation parameter values and * default method parameter values in classes.
Head branch was pushed to by a user without write access
ae35561 to
c912637
Compare
|
@SimplyDanny I'll merge this as-is so I can cut a release before I log off for the weekend. Any additional fixes can come in a follow-up release. |
Alright. I just resolved a merge conflict in the |
realm#3771) Static references with `Self` are not allowed to define * default values of properties, * annotation parameter values and * default method parameter values in classes.
This fixes #3768. Static references with
Selfare not allowed to definein classes.