mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A module compiled with `-enable-private-imports` allows other modules to import private declarations if the importing source file uses an ``@_private(from: "SourceFile.swift") import statement. rdar://29318654
10 lines
127 B
Swift
10 lines
127 B
Swift
private protocol HasDefaultFoo {}
|
|
|
|
extension HasDefaultFoo {
|
|
private func foo() {}
|
|
}
|
|
|
|
private class Base {
|
|
func foo() {}
|
|
}
|