Skip to content

[Completion] Handle unbound generics in typealiases #80343

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
Apr 2, 2025

Conversation

hamishknight
Copy link
Contributor

The underlying type for a typealias can be an unbound generic type, replace these with the bound generic equivalent. This avoids crashing when attempting to compute the type relation (in the future we'll want to open these type parameters for the comparison).

rdar://147789214

@hamishknight hamishknight force-pushed the out-of-bounds branch 3 times, most recently from 58fa840 to def5d28 Compare March 31, 2025 19:47
@hamishknight
Copy link
Contributor Author

Spoke to Slava offline, updated to remove the use of transformRec

The underlying type for a typealias can be an unbound generic type,
replace these with the bound generic equivalent. This avoids crashing
when attempting to compute the type relation (in the future we'll
want to open these type parameters for the comparison).

rdar://147789214
@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test

@hamishknight hamishknight enabled auto-merge April 1, 2025 19:24
@hamishknight hamishknight merged commit f31643b into swiftlang:main Apr 2, 2025
3 checks passed
@hamishknight hamishknight deleted the out-of-bounds branch April 2, 2025 07:50
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.

3 participants