Skip to content

No completion results after in guard optional unwrapping inside trailing closure of overloaded function #71078

Open
@ahoppen

Description

@ahoppen

The following test case only produces keyword results.

func run(execute workItem: Int) {}
func run(execute work: () -> Void) {}

func test() {
  run {
    guard let data = #^COMPLETE^# else {
      return
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    code completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress tester

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions