Skip to content

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

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 24, 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 xedin requested a review from DougGregor April 24, 2019 01:42
@xedin
Copy link
Contributor Author

xedin commented Apr 24, 2019

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 24, 2019

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 51f058b6c7deea83779847ca9385cb9b18830405

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 51f058b6c7deea83779847ca9385cb9b18830405

@xedin
Copy link
Contributor Author

xedin commented Apr 24, 2019

@swift-ci please test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 51f058b6c7deea83779847ca9385cb9b18830405

xedin added 2 commits April 24, 2019 13:44
…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
@xedin
Copy link
Contributor Author

xedin commented Apr 24, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 51f058b6c7deea83779847ca9385cb9b18830405

@xedin
Copy link
Contributor Author

xedin commented Apr 24, 2019

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 51f058b6c7deea83779847ca9385cb9b18830405

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