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-14684] No code completion for return value of optional function type #57034

Closed
ahoppen opened this issue Jun 1, 2021 · 0 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. found by stress tester Flag: An issue found by the SourceKit stress tester

Comments

@ahoppen
Copy link
Contributor

ahoppen commented Jun 1, 2021

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

md5: 077ba8d276591f681fccbdab793dd7e5

is duplicated by:

  • SR-14702 No code completion result when completing nested type in Optional

Issue Description:

The following new test case does not return any completion results. We should be doing global type completion. If the ? is removed, results come in as expected.

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE
var onAction: (() -> #^COMPLETE^#)?
@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
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. found by stress tester Flag: An issue found by the SourceKit stress tester
Projects
None yet
Development

No branches or pull requests

1 participant