mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When a particular nominal type or extension thereof declares conformance to a protocol, check whether that type or extension contains any members that *nearly* match a defaulted requirement (i.e., a requirement that is satisfied by something in a protocol extension), but didn’t match for some reason and weren’t used to satisfy any other requirement of that protocol. It’s intended to catch subtle mistakes where a default gets picked instead of the intended member. This is a generalization of the code we’ve had for @objc optional requirements for a long time. Fixes rdar://problem/24714887.
5.1 KiB
5.1 KiB