Skip to content

Sema: Disallow SE-0361 with variadic generic types for now #81304

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 1 commit into from
May 6, 2025

Conversation

slavapestov
Copy link
Contributor

extension G<Int> introduces a same-type requirement, and this isn't supported for variadic generic types yet.

Make sure we pass a valid source location here to diagnose instead of dropping the error.

`extension G<Int>` introduces a same-type requirement, and
this isn't supported for variadic generic types yet.

Make sure we pass a valid source location here to diagnose
instead of dropping the error.

- Fixes swiftlang#70432
- Fixes rdar://119613080
@slavapestov slavapestov requested a review from hborla as a code owner May 5, 2025 20:04
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov slavapestov merged commit ce0fb99 into swiftlang:main May 6, 2025
5 checks passed
slavapestov added a commit to slavapestov/swift that referenced this pull request May 29, 2025
We didn't diagnose conflicting generic signatures involving the
SE-0361 syntax before swiftlang#81304.

Fixes rdar://152170450.
slavapestov added a commit to slavapestov/swift that referenced this pull request May 30, 2025
We didn't diagnose conflicting generic signatures involving the
SE-0361 syntax before swiftlang#81304.

Fixes rdar://152170450.
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.

extension S<Bool, Int> compiles as extension S for struct S<each T>
1 participant