Files
swift-mirror/test/NameLookup/Inputs/has_accessibility.swift
Hamish Knight 5b99c2020f NFC: Re-organize NameBinding tests
The directory currently seems to have a mix of
tests for import resolution and name lookup.
Therefore split it into two directories;
ImportResolution and NameLookup.
2020-03-29 18:51:09 -07:00

52 lines
930 B
Swift

public let x: Int = 0
internal let y: Int = 0
private let z: Int = 0
#if DEFINE_VAR_FOR_SCOPED_IMPORT
internal let zz: Int = 0
#endif
public struct Foo {
internal init() {}
public static func x() {}
internal static func y() {}
private static func z() {}
}
open class Base {
internal func method() {}
open internal(set) var value = 0
}
public class HiddenMethod {
internal func method() {}
}
public class HiddenType {
typealias TheType = Int
}
public struct OriginallyEmpty {}
public struct StructWithPrivateSetter {
public private(set) var x = 0
public init() {}
}
public protocol HasDefaultImplementation {}
extension HasDefaultImplementation {
internal func foo() {}
}
internal class InternalBase {}
open class ImplementsInternalProtocol {}
protocol InternalProtocol {}
extension InternalProtocol {
public var i: Int { return 1 }
}
extension ImplementsInternalProtocol : InternalProtocol {}