Skip to content

[NFC] Replace type-erased pattern matching with typed if-else blocks #255

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

Conversation

WowbaggersLiquidLunch
Copy link
Contributor

Motivation: Concrete types are better than Any.

Result: This removes an unreachable default case, and should result in a bit less runtime cost.

Same as swiftlang/swift-package-manager#3840, but for TSC's Version.

This removes an unreachable `default` case, and should result in a little less runtime cost.
@WowbaggersLiquidLunch
Copy link
Contributor Author

@swift-ci please smoke test

@elsh elsh self-assigned this Nov 29, 2021
@elsh
Copy link
Contributor

elsh commented Nov 29, 2021

@swift-ci test

@elsh elsh merged commit 08800c5 into swiftlang:main Dec 6, 2021
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