mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The effective access of an overridden declaration is subject to escalation by -enable-testing. When this is flag is enabled, an interface containing an internal-overriding-public declaration will still print `override`. This is because the effective access of the base of the override is formally internal but effectively public. Instead, use the formal access scope of the overridden declaration to compute its access relative to the override. While I'm here, catch the case where the base declaration is `@usableFromInline` and therefore *will* be printed in the interface. We treat these declarations as effectively public for the purpose of printing `override`. Resolves rdar://64969741
1.2 KiB
1.2 KiB