Skip to content

[SE-0439] Remove redundant generic where example #2824

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
Jun 13, 2025
Merged

Conversation

Jager-yoo
Copy link
Contributor

Hi, I noticed the inheritance list associatedtype snippet was duplicated, and the generic where clauses function example from the previous revision had gone missing.

This PR:

  • removes the duplicate associatedtype example
  • restores the func f<T1, T2>(…) where T1: P1, T2: P2 example
  • minor docs cleanup

Thanks for taking a look!
cc @mateusrodriguesxyz, @xwu

@Jager-yoo
Copy link
Contributor Author

Just following up on this. Would appreciate any feedback when you get a chance. Thanks! @mateusrodriguesxyz @xwu

associatedtype T:
P1,
P2, ❌ Expected type
func f<T1, T2>(a: T1, b: T2) where
Copy link
Contributor

Choose a reason for hiding this comment

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

While this was probably intended, instead of adding new text, we could delete the unintended repeated example altogether.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xwu Done! I removed the repeated example and updated the PR title. Thanks.

@Jager-yoo Jager-yoo changed the title [SE-0439] Restore generic where example [SE-0439] Remove redundant generic where example Jun 13, 2025
@xwu
Copy link
Contributor

xwu commented Jun 13, 2025

Thanks!

@xwu xwu merged commit 6331dfe into swiftlang:main Jun 13, 2025
@Jager-yoo Jager-yoo deleted the se-0439 branch June 14, 2025 01:31
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