Skip to content

[5.9] Fix indexing constructors with generic parameters (#65597) #65721

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

keith
Copy link
Member

@keith keith commented May 5, 2023

Previously in the case of a constructor like A<Int>(value: 1) Fn->getLoc() returned the location of >(value: 1) while the actual location we're looking for is correctly the start of A<Int>(value: 1). This adjusts the location we're looking up to use the start location of the constructor instead.

Fixes: #54532

(cherry picked from commit f5fbee2 / #65597)

)

Previously in the case of a constructor like `A<Int>(value: 1)`
`Fn->getLoc()` returned the location of `>(value: 1)` while the actual
location we're looking for is correctly the start of `A<Int>(value: 1)`.
This adjusts the location we're looking up to use the start location of
the constructor instead.

Fixes: swiftlang#54532

(cherry picked from commit f5fbee2 / swiftlang#65597)
@keith keith requested a review from a team as a code owner May 5, 2023 22:21
@keith
Copy link
Member Author

keith commented May 5, 2023

@swift-ci please test

@keith
Copy link
Member Author

keith commented May 22, 2023

@DougGregor can I bug you for a review here as the 5.9 swift compiler release manager?

@keith keith merged commit 725bdcd into swiftlang:release/5.9 May 30, 2023
@keith keith deleted the ks/5.9-fix-indexing-constructors-with-generic-parameters-65597 branch May 30, 2023 20:45
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.

[SR-12096] Index missing references to initializers in Result extensions
2 participants