mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously we would always consider an AnyObject subscript lookup to be ambiguous if there was a candidate in both a class and protocol, even if the selectors and types matched. This was due to the protocol's generic signature preventing the signatures from being coalesced. Tweak the logic to strip generic signatures when comparing for AnyObject lookup, matching what we do for @objc methods. Resolves SR-8611. Resolves rdar://43645564 & rdar://62906344.
164 KiB
164 KiB