-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
argument labelsFeature: function argument labelsFeature: function argument labelsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.call expressionsFeature → expressions: Call expressionsFeature → expressions: Call expressionsclosuresFeature: closuresFeature: closurescode completionArea → source tooling: code completionArea → source tooling: code completionexpressionsFeature: expressionsFeature: expressionsfound 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-14737 |
Radar | rdar://problem/79092374 |
Original Reporter | @ahoppen |
Type | Bug |
Status | Resolved |
Resolution | Done |
Additional Detail from JIRA
Votes | 0 |
Component/s | CodeCompletion |
Labels | Bug, FoundByStressTester |
Assignee | @rintaro |
Priority | Medium |
md5: 2d08989172c8e74d199cce680bb46a1c
relates to:
Issue Description:
In the following test case the isActive
argument label is not suggested. When removing the x.map
closure around it, the argument label is properly completed.
// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token=COMPLETE
struct TodayView {
var x {
let x = Bool?
x.map { _ in
NavigationLink2(destination: true, #^COMPLETE^#isActive: true)
}
}
}
public struct NavigationLink2<Label> {
public init(destination: Label, isActive: Bool) { fatalError() }
}
Metadata
Metadata
Assignees
Labels
argument labelsFeature: function argument labelsFeature: function argument labelsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.call expressionsFeature → expressions: Call expressionsFeature → expressions: Call expressionsclosuresFeature: closuresFeature: closurescode completionArea → source tooling: code completionArea → source tooling: code completionexpressionsFeature: expressionsFeature: expressionsfound 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