-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Constraint solver] Always produce optional types for '?' patterns. #29855
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
@swift-ci please smoke test |
@swift-ci please smoke test compiler performance |
Compilation-performance test failed |
@swift-ci please smoke test |
@swift-ci please smoke test compiler performance |
@swift-ci please test source compatibility |
@swift-ci please smoke test |
@swift-ci please smoke test compiler performance |
@swift-ci please test source compatibility |
Compilation-performance test failed |
This is subsumed by the general PR to generate constraints for patterns, #29879 |
When generating a type from an optional some pattern (
e.g., x?
), the type is always an optional type. Form that optional type rather than an otherwise-meaningless type variable.