Skip to content

Conversation

@jckarter
Copy link
Contributor

@jckarter jckarter commented Oct 5, 2017

Explanation: The compiler would crash when a key path literal with subscript components contained indexes that were a subtype of the subscript's expected index parameters.

Scope: Fixes a bug in key path subscripts, a new feature added after the first release of 4.0.

Issue: SR-6062 | rdar://problem/34835322

Risk: Low, small bug fix

Testing: Swift CI, test case from Jira, compatibility suite

… to match the subscript decl's index type.

Fixes SR-6062 | rdar://problem/34835322.
@jckarter
Copy link
Contributor Author

jckarter commented Oct 5, 2017

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Oct 5, 2017

@swift-ci Please test source compatibility

@jckarter
Copy link
Contributor Author

jckarter commented Oct 5, 2017

@slavapestov Mind reviewing this for the 4.0 branch?

@jckarter jckarter requested a review from slavapestov October 5, 2017 21:45
@jckarter jckarter changed the title Sema: Coerce the type of the index expression in a key path component to match the subscript decl's index type. [4.0] Sema: Coerce the type of the index expression in a key path component to match the subscript decl's index type. Oct 5, 2017
@jckarter jckarter merged commit 866e511 into swiftlang:swift-4.0-branch Oct 6, 2017
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