Skip to content

Use interface types when checking #keyPath. (#7028) #7043

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

Conversation

jrose-apple
Copy link
Contributor

@jrose-apple jrose-apple commented Jan 26, 2017

  • Explanation: The code to check the validity of #keyPath expressions was accessing the AST in a way that's no longer supported. This commit changes it to use the new API.
  • Scope: Only affects #keyPath expressions. The crash occurred when the expression referenced a property in imported Swift module (as opposed to an imported Objective-C module or the Swift module currently being compiled).
  • Issue: SR-3714 / rdar://problem/30192516
  • Reviewers: @DougGregor, @slavapestov
  • Risk: Very low. There should be no visible behavior change from this.
  • Testing: Added a compiler regression test.

This avoids a crash when the path refers to a property in another
Swift module.

https://bugs.swift.org/browse/SR-3714
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