Skip to content

[RemoteInspection] Specify precise return type of RecordTypeInfo (NFC) #65191

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

kastiglione
Copy link
Contributor

Update the return type of ReflectionContext::getMetadataTypeInfo and TypeConverter::getClassInstanceTypeInfo to be more precise: RecordTypeInfo instead of TypeInfo. This means callers don't have to unnecessarily dynamically check types and down cast.

@kastiglione
Copy link
Contributor Author

@swift-ci smoke test

@kastiglione
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@kastiglione
Copy link
Contributor Author

@swift-ci smoke test

@kastiglione
Copy link
Contributor Author

@swift-ci test Windows Platform

1 similar comment
@eeckstein
Copy link
Contributor

@swift-ci test Windows Platform

@eeckstein eeckstein merged commit 644fe60 into main Apr 15, 2023
@eeckstein eeckstein deleted the dl/RemoteInspection-Specify-precise-return-type-of-RecordTypeInfo-NFC branch April 15, 2023 10:19
@ktoso
Copy link
Contributor

ktoso commented Apr 17, 2023

Isn't this missing a cherry-pick to 5.9? We've hit this on 5.9 elsewhere

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.

4 participants