mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
One minor revision: this lifts the proposed restriction against overriding a non-open method with an open one. On reflection, that was inconsistent with the existing rule permitting non-public methods to be overridden with public ones. The restriction on subclassing a non-open class with an open class remains, and is in fact consistent with the existing access rule.
5 lines
81 B
Swift
5 lines
81 B
Swift
open class Base {
|
|
func internalMethod() {}
|
|
open internal(set) var prop = 0
|
|
}
|