mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
For resilient classes, we hide method symbols if possible, to enforce that only resilient access patterns are used to call and override methods. Final methods can be referenced directly, however, but we were incorrectly hiding them anyway if they were overrides. To consider overrides differently here only makes sense in the non-resilient case; in fact this was a regression from <rdar://problem/55559104>, which fixed a bug with non-resilient classes by adding this check. I tried to add comments and clean up the logic here a bit to be less confusing in the future. Fixes <rdar://problem/57864425>.
5.2 KiB
5.2 KiB