-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.closuresFeature: closuresFeature: closurescode completionArea → source tooling: code completionArea → source tooling: code completionmulti-statement closuresFeature → closures: multi-statement closuresFeature → closures: multi-statement closuressource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source tooling
Description
The following new test case fails:
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE | %FileCheck %s
enum DragState {
case dragging(translation: Int, predictedLocation: Int)
}
func pnChanged(_ action: () -> Void) {}
func foo() {
var gestureViewState: DragState = .dragging(translation: 0, predictedLocation: 0)
let longPressDrag = pnChanged {
_ = 1
gestureViewState = .dragging(translation: 0, #^COMPLETE^#predictedLocation: 0)
}
}
// CHECK: Begin completions, 1 items
// CHECK-DAG: Pattern/Local/Flair[ArgLabels]: {#predictedLocation: Int#}[#Int#];
// CHECK: End completionCode completion works correctly when
- Discarding the result of
unchanged - Making the closure a single-statement closure
rdar://92603748
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.closuresFeature: closuresFeature: closurescode completionArea → source tooling: code completionArea → source tooling: code completionmulti-statement closuresFeature → closures: multi-statement closuresFeature → closures: multi-statement closuressource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source tooling