Skip to content

[6.2] Don't remove leading and trailing parentheses for closure types in type signature disambiguation #1243

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

Conversation

d-ronnqvist
Copy link
Contributor

  • Explanation: This fixes an issue where DocC would remove leading and trailing parentheses from certain closure parameter types in the suggested disambiguation.
  • Scope: Incorrect suggested disambiguations in some cases.
  • Issue: rdar://151311221
  • Risk: Low.
  • Testing: Added tests that verify the suggested disambiguations for more and additional test validation that the suggested disambiguation work. Manually verified with the project where this issue was originally reported. Existing automated tests pass.
  • Reviewer: @patshaughnessy
  • Original PR: Don't remove leading and trailing parentheses for closure types in type signature disambiguation #1231

…pe signature disambiguation (swiftlang#1231)

* Fix issue where suggested link disambiguation removed leading and trailing parentheses for some closure types

rdar://151311221

* Minor unrelated correction of whitespace in symbol declaration test data

* Include more information in test failure messages about unknown disambiguation
@d-ronnqvist d-ronnqvist requested a review from franklinsch June 18, 2025 12:46
@d-ronnqvist d-ronnqvist self-assigned this Jun 18, 2025
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit c0873cd into swiftlang:release/6.2 Jun 18, 2025
2 checks passed
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.

2 participants