Skip to content
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

[SR-14685] Code completion returns no results for key path with generic return type #57035

ahoppen opened this issue Jun 1, 2021 · 1 comment


Copy link

@ahoppen ahoppen commented Jun 1, 2021

Previous ID SR-14685
Radar rdar://78779234
Original Reporter @ahoppen
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, FoundByStressTester
Assignee @ahoppen
Priority Medium

md5: f55f8d6340bd1a7bee6d3539f61a3894

relates to:

  • SR-14703 Code completion returns no result for key path with generic base

Issue Description:

In the following new test case, code completion returns no results although id should be suggested. When making the return type of the KeyPath non-generic, id is suggested.

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE

func takeKeyPath<ID>(id: KeyPath<MyStruct, ID>) {

struct MyStruct {
    let id: Int

func customListsView() {
Copy link
Collaborator Author

@ahoppen ahoppen commented Jun 30, 2021

Fixed in #38049

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant