-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ConstraintSystem] Rework handling of object literal expressions #32481
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
[ConstraintSystem] Rework handling of object literal expressions #32481
Conversation
@swift-ci please test |
@swift-ci please test source compatibility release |
Build failed |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
Instead of special casing argument-to-parameter matching for object literal expressions, let's allow constraint system to lookup a witness initializer and apply it to the given set of arguments. This also simplifies constraint application because `coerceCallArguments` could be used to form type-checked argument expression.
9e69c6a
to
02bc2c6
Compare
@swift-ci please test |
@swift-ci please test source compatibility release |
Instead of special-casing argument-to-parameter matching for
object literal expressions, let's allow constraint system to
lookup a witness initializer and apply it to the given set
of arguments.
This also simplifies constraint application because
coerceCallArguments
could be used to form type-checkedargument expression.