-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Error message for obsoleted protocol composition syntax should say "types" instead of "protocols" #62518
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
Comments
Hmm, I'm not sure that "types" is the right word to use here. The things that are joined together with |
Good point, wording them as constraints (or type constraints per the language guide) sounds better. |
So we change the word "types" to "type constraints"? |
Sounds good to me. It’s totally fine to do this in the same pull request btw, no need to close it.
Yeah, you simply forgot to update a test somewhere — check out the logs. |
…s' for obsoleted error decomposition syntax error message
Have done the necessary changes @AnthonyLatsis |
Have you checked in with @IceCurrent? They might still be interested in wrapping this up. |
I didn't check with him, but looks like he closed his pull request around 2 months back and didn't revert, so I just did the changes. |
Also, I actually by mistake committed and pushed changes of this issue in the same branch of the previous pull request and since the branch is same, it's reflected in the previous issue too... |
Soft-reset those changes, stash them, then unstash them in a new branch, then force-push the other branch. |
Thanks! |
@AnthonyLatsis I have committed the changes and also did the testing, can I open a pull request? |
…osition syntax error Fixes swiftlang#62518
I cannot forbid you to, but I will suggest to at least try and reach out to the person that last worked in this. We do not want fixing issues to be a race between contributors (unless it is a race that has been agreed on 😅). |
Lol! |
Also, I see the commits of my ongoing PR in the new PR, is that normal to happen, because when I researched, it seemed that it happens a lot and it's a Git issue? |
That means that your new branch branches off from the branch associated with the ongoing PR. You should set the new branch to track |
…osition syntax error Fixes swiftlang#62518
@AnthonyLatsis I have created a pull request, please review it. |
@IceCurrent Are you interested in wrapping this up? |
…osition syntax error Fixes swiftlang#62518
The following syntax error is emitted when the parser spots obsoleted protocol composition syntax:
The problem with this message is that "protocols" is not an accurate or prudent description of the components at this compilation stage:
typealias
.A more neutral "types" is preferable.
The text was updated successfully, but these errors were encountered: