Skip to content
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

Revert "[Sema] Add specialization constraints for func and variable types, then diagnose w/fixes." #75489

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 25, 2024

Reverts #74909

Causes a source compatibility regression in penny-bot project.

@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2024

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2024

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2024

cc @gregomni

@eeckstein eeckstein merged commit 2f1f3ab into main Jul 26, 2024
5 checks passed
@eeckstein eeckstein deleted the revert-74909-generic-arg branch July 26, 2024 05:48
@xedin
Copy link
Contributor Author

xedin commented Jul 26, 2024

@gregomni we need to reduce penny-bot failure, figure out what is wrong there and add it as a test-case.

Looks like the failure in the dependency of penny-bot - DiscordBM, and the type is a macro - https://github.com/DiscordBM/DiscordBM/blob/main/Macros/UnstableEnumMacro/UnstableEnum.swift#L26

I have a suspicion that this was a situation that was ignored previously because the type wasn't resolved early enough, we might want to consider detecting situation like that and downgrading error to a warning in such cases.

@xedin
Copy link
Contributor Author

xedin commented Jul 26, 2024

Or we need to make an exception to types that represent macros because they can have generic arguments at a use site it seems...

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.

source compatibility project penny-bot fails with a compiler error
2 participants