-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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.code 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 tooling
Description
Previous ID | SR-14705 |
Radar | rdar://78781467 |
Original Reporter | @ahoppen |
Type | Bug |
Status | Resolved |
Resolution | Done |
Additional Detail from JIRA
Votes | 0 |
Component/s | CodeCompletion |
Labels | Bug, FoundByStressTester |
Assignee | @ahoppen |
Priority | Medium |
md5: 6ac46df8ad4b2cf275c61e416552a064
Issue Description:
In the following test case, code completion is offering a bunch of global completions but not the progress
argument label for Foo
defined in the module UI
.
// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token=COMPLETE -I %S/Inputs/
import UI
import PI
func foo() {
Foo(#^COMPLETE^#progress: 2)
}
Inputs/UI.swiftinterface
// swift-interface-format-version: 1.0
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name UI
public struct Foo {
public init(progress: Double) {
}
}
Inputs/PI.swiftinterface
// swift-interface-format-version: 1.0
// swift-module-flags: -target x86_64-apple-macos10.9 -module-name PI
public struct Foo {
public init() {
}
}
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.code 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 tooling