Skip to content

[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

Merged
merged 4 commits into from
Jun 23, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 19, 2020

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.

@xedin xedin requested review from DougGregor and hborla June 19, 2020 23:35
@xedin
Copy link
Contributor Author

xedin commented Jun 20, 2020

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 20, 2020

@swift-ci please test source compatibility release

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e4a8861a4ab12f7efefb0993b207213fb05e84a6

@xedin
Copy link
Contributor Author

xedin commented Jun 20, 2020

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e4a8861a4ab12f7efefb0993b207213fb05e84a6

@xedin
Copy link
Contributor Author

xedin commented Jun 22, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - e4a8861a4ab12f7efefb0993b207213fb05e84a6

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e4a8861a4ab12f7efefb0993b207213fb05e84a6

xedin added 4 commits June 22, 2020 10:15
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.
@xedin xedin force-pushed the rework-object-literal-typechecking branch from 9e69c6a to 02bc2c6 Compare June 22, 2020 17:16
@xedin
Copy link
Contributor Author

xedin commented Jun 22, 2020

@swift-ci please test

@swiftlang swiftlang deleted a comment from swift-ci Jun 22, 2020
@swiftlang swiftlang deleted a comment from swift-ci Jun 22, 2020
@xedin
Copy link
Contributor Author

xedin commented Jun 22, 2020

@swift-ci please test source compatibility release

@xedin xedin merged commit 890f670 into swiftlang:master Jun 23, 2020
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