Files
swift-mirror/test/Sema/Inputs/accessibility_multi_other_module.swift
Jordan Rose fef3a3768c Use access scopes instead of adjustAccessLevelForProtocolExtension
This gets adjustAccessLevelForProtocolExtension, a hack of sorts to
begin with, out of ValueDecl's general API, and down to a helper for
isAccessibleFrom and isSetterAccessibleFrom. (The only reason these
two don't go through access scopes is as an optimization.)
2018-07-23 16:36:16 -07:00

31 lines
751 B
Swift

public struct PrivateConformance : PrivateProtocol, FilePrivateProtocol {}
private protocol PrivateProtocol {}
extension PrivateProtocol {
public func publicExtensionMember() {}
internal func internalExtensionMember() {}
}
fileprivate protocol FilePrivateProtocol {}
extension FilePrivateProtocol {
public func publicFPExtensionMember() {}
// expected-note@-1 {{'publicFPExtensionMember' declared here}}
internal func internalFPExtensionMember() {}
// expected-note@-1 {{'internalFPExtensionMember' declared here}}
}
public struct InternalConformance : InternalProtocol {}
internal protocol InternalProtocol {}
extension InternalProtocol {
public func publicExtensionMember() {}
internal func internalExtensionMember() {}
}