Skip to content

[5.1][ConstraintSystem] Type of key path expression should be a known KeyPath type #24260

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 3 commits into from
Apr 25, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 25, 2019

Currently getPotentialBindingsForRelationalConstraint doesn't
respect the fact that type of key path expression has to be a
form of KeyPath, instead it could eagerly try to bind it to
Any or other contextual type if it's only available
information.

This patch aims to fix this situation by filtering potential
bindings available for type variable representing type of
the key path expression.

Resolves SR-10467.

@xedin
Copy link
Contributor Author

xedin commented Apr 25, 2019

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 25, 2019

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - d9fc30dbd8200a15a9fd55c3daf8d6ba1028f517

xedin added 3 commits April 24, 2019 17:48
…Path` type

Currently `getPotentialBindingsForRelationalConstraint` doesn't
respect the fact that type of key path expression has to be a
form of `KeyPath`, instead it could eagerly try to bind it to
`Any` or other contextual type if it's only available
information.

This patch aims to fix this situation by filtering potential
bindings available for type variable representing type of
the key path expression.

Resolves: SR-10467
(cherry picked from commit 1516a3d)
@xedin
Copy link
Contributor Author

xedin commented Apr 25, 2019

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Apr 25, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d9fc30dbd8200a15a9fd55c3daf8d6ba1028f517

@xedin xedin merged commit 5d8bffd into swiftlang:swift-5.1-branch Apr 25, 2019
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