mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This doesn't make a difference on Darwin, but on Linux it causes linker errors if a class inherits from a public class in another module which has private/internal members. fixes SR-1901
13 lines
208 B
Swift
13 lines
208 B
Swift
|
|
open class Base {
|
|
private func privateFunc() -> Int {
|
|
return 27
|
|
}
|
|
internal func internalFunc() -> Int {
|
|
return 28
|
|
}
|
|
|
|
private var privateVar: Int = 29
|
|
internal var internalVar: Int = 30
|
|
}
|