Files
swift-mirror/test/NameBinding/Inputs/has_accessibility.swift
Jordan Rose 1c1aed747a Add some tests for @testable and subclassing.
Inspired by the previous commit. These are things we expect to keep
working.
2016-09-06 17:13:04 -07:00

43 lines
734 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 {}