mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
52 lines
930 B
Swift
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 {}
|