Skip to content

Swift: URL is a struct, not a class #10596

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 5 commits into from
Sep 28, 2022
Merged

Swift: URL is a struct, not a class #10596

merged 5 commits into from
Sep 28, 2022

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Sep 27, 2022

See: https://developer.apple.com/documentation/foundation/url

Updates the tests and code to match reality.

We hope this kind of error will be less common when we have complete Models-As-Data support, and helper methods for matching class members by class and member name, so that use of the ClassDecl and StructDecl QL classes directly becomes uncommon.

@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Swift labels Sep 27, 2022
@geoffw0 geoffw0 requested a review from a team as a code owner September 27, 2022 17:29
@geoffw0
Copy link
Contributor Author

geoffw0 commented Sep 27, 2022

I think there are a couple of affected tests I missed, fix to come...

@geoffw0
Copy link
Contributor Author

geoffw0 commented Sep 27, 2022

Fixed the other affected test.

Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

LGTM!

@geoffw0 geoffw0 merged commit 9780dff into github:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants