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-14992] Code completion gives no suggestions in call to a function with an invalid type in its signature #57334

Closed
nathawes opened this issue Jul 31, 2021 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@nathawes
Copy link
Collaborator

Previous ID SR-14992
Radar rdar://problem/81425383
Original Reporter @nathawes
Type Bug
Status Resolved
Resolution Done
Environment

I think this is happening for solver-based code completion kinds because the lookup the solver does filters the decls with an isValid() check. For code completion we should let it through and treat the invalid type as a hole.

Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug
Assignee @ahoppen
Priority Medium

md5: b78b3b26aed6388248bd158f673721cf

Issue Description:

enum A { case a }
func foo(x: A, b: Undefined) {}

foo(x: .#^HERE^#) // gives no results
@typesanitizer
Copy link

@swift-ci create

@ahoppen
Copy link
Contributor

ahoppen commented Apr 8, 2022

main: #42160
5.7: #42240

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the source tooling Area: IDE support, SourceKit, and other source tooling label Feb 6, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

4 participants