Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Aug 29, 2024

Some invalid specializations were previously allowed by the compiler
and we found some existing code that used that (albeit invalid) syntax,
so we need to stage that error as a warning until Swift 6 language mode
to avoid source compatibility break.

Resolves: rdar://134740240

xedin added 2 commits August 29, 2024 00:15
…rning until Swift 6 language mode

Some invalid specializations were previously allowed by the compiler
and we found some existing code that used that (albeit invalid) syntax,
so we need to stage that error as a warning until Swift 6 language mode
to avoid source compatibility break.

Resolves: rdar://134740240
Instead of "a generic function" which is too abstract and not always
correct, let's actually point to a kind of the declaration being referenced.
@xedin
Copy link
Contributor Author

xedin commented Aug 29, 2024

@swift-ci please test

@xedin xedin merged commit 6bbf945 into swiftlang:main Aug 29, 2024
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.

3 participants