Skip to content

Changed 'protocols' to 'type constraints' for obsoleted protocol composition syntax error #63574

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
Feb 13, 2023

Conversation

Rajveer100
Copy link
Contributor

Fixes #62518

Improves the error message caused due to obsoleted protocol composition syntax as discussed in the issue thread, 'type constraints' would be more accurate as it isn't just limited to 'protocols'. Changes were done in the include/swift/AST/DiagnosticsParse.def file and the responsible test files in the /test directory.

@Rajveer100 Rajveer100 force-pushed the branch-for-issue-62518 branch from 819331e to 8e4fd23 Compare February 11, 2023 06:09
@Rajveer100
Copy link
Contributor Author

Rajveer100 commented Feb 11, 2023

Hi, can anyone review this PR?

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

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

LGTM

@CodaFi
Copy link
Contributor

CodaFi commented Feb 11, 2023

@swift-ci smoke test

@Rajveer100
Copy link
Contributor Author

Hey nice to meet you Robert, thanks for the approve!

@Rajveer100
Copy link
Contributor Author

Definitely there's an issue with the windows smoke test. @shahmishal Another PR with the issue you mentioned!

@AnthonyLatsis AnthonyLatsis merged commit dbd3ebe into swiftlang:main Feb 13, 2023
@Rajveer100 Rajveer100 deleted the branch-for-issue-62518 branch February 13, 2023 12:11
@AnthonyLatsis AnthonyLatsis added improvement parser Area → compiler: The legacy C++ parser diagnostics QoI Bug: Diagnostics Quality of Implementation compiler The Swift compiler itself labels Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler itself diagnostics QoI Bug: Diagnostics Quality of Implementation improvement parser Area → compiler: The legacy C++ parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error message for obsoleted protocol composition syntax should say "types" instead of "protocols"
3 participants