mirror of
https://github.com/apple/swift.git
synced 2026-10-10 13:50:43 +02:00
Non-type declarations that are universally unavailable should always be diagnosed, regardless of whether the use context is also universally unavailable. The logic for suppressing diagnostics about uses of unavailable declarations in equivalently unavailable contexts accidentally admitted uses of members of universally unavailable extensions specifically, though. Fix this by differntiating the declaration that is being used versus the declaration that is the source of the availability constraints.