-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
access controlFeature → modifiers: Access control and access levelsFeature → modifiers: Access control and access levelsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.importFeature → declarations: `import` declarationsFeature → declarations: `import` declarations
Description
Description
It is impossible to reconcile the diagnostics emitted for access control on imports.
Reproduction
package import typealias SWLLBuild.llbuild_pid_t
public import typealias SWLLBuild.ProcessDelegate
@_exported public import struct SWBLLBuild.CommandExtendedResult
package class TaskProcessDelegate: ProcessDelegate {
package func processStarted(pid: llbuild_pid_t?) {
}
}
Expected behavior
You should be able to specify the minimally visible specifier for the types.
- Module 'SWBLLBuild' is imported as 'public' from the same file; this 'package' access level will be ignored
- Public import of 'SWBLLBuild' was not used in public declarations or inlinable code
Environment
swiftc -version
Swift version 6.2-dev (LLVM 6447c07cd7bd63f, Swift d9e07280e43d548)
Target: x86_64-unknown-windows-msvc
Additional information
No response
Metadata
Metadata
Assignees
Labels
access controlFeature → modifiers: Access control and access levelsFeature → modifiers: Access control and access levelsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.importFeature → declarations: `import` declarationsFeature → declarations: `import` declarations