blob: 53d8ecaf69e5d6f4dd86ad2b47f00f9f859c90f3 [file] [log] [blame]
// Things in this file are deliberately internal. The test harness uses @testable import.
internal class Base : CustomStringConvertible {
let id: Int
init(_ id: Int) {
self.id = id
}
var description: String { return "instance \(id)" }
fileprivate func privateFn() -> String {
return "private \(id)"
}
func callPrivate() -> String {
return privateFn()
}
}
private class PrivateSub : Base {
override func privateFn() -> String {
return "really private"
}
}
internal func getPrivateInstance() -> Base {
return PrivateSub(0)
}