-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
closuresFeature: closuresFeature: closurescode completionArea → source tooling: code completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress testerFlag: An issue found by the SourceKit stress testersource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source toolingunexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output
Description
| Previous ID | SR-15496 |
| Radar | rdar://85602411 |
| Original Reporter | @ahoppen |
| Type | Bug |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | CodeCompletion |
| Labels | Bug, FoundByStressTester |
| Assignee | None |
| Priority | Medium |
md5: 40df6f8ed07123e264ce52e6673e2e52
is duplicated by:
- SR-15999 Missing dot member completion inside closure
Issue Description:
The following new test case fails. When removing replacing either let ranges or let nsRange by _, the test case passes.
// RUN: %swift-ide-test --code-completion --code-completion-token COMPLETE --source-filename %s | %FileCheck %s
public func test() {
let ranges = compactMap { (match) in
let nsRange = match.#^COMPLETE^#
}
}
struct Foo {
var x: String
}
func compactMap(_ transform: (Foo) -> Void) {
fatalError()
}
// CHECK: Begin completions, 2 items
// CHECK-DAG: Keyword[self]/CurrNominal: self[#Foo#];
// CHECK-DAG: Decl[InstanceVar]/CurrNominal: x[#String#];
// CHECK: End completionsMetadata
Metadata
Assignees
Labels
closuresFeature: closuresFeature: closurescode completionArea → source tooling: code completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress testerFlag: An issue found by the SourceKit stress testersource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source toolingunexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output