[SR-13930] Index store does not relate objc optional protocol method implemented in subclass #56327
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
class
Feature → type declarations: Class declarations
conformances
Feature → protocol: protocol conformances
declarations
Feature: declarations
indexing
Area → source tooling: AST indexing
inheritance
Feature → type declarations → class: Subclassing and inheritance of class members
optional protocol requirements
Feature → protocol: optional protocol requirements
protocol
Feature → type declarations: Protocol declarations
source tooling
Area: IDE support, SourceKit, and other source tooling
swift 5.9
unexpected behavior
Bug: Unexpected behavior or incorrect output
Environment
Swift 5.3.1
Additional Detail from JIRA
md5: b4e60253efa0e8c7ffa0ba78d8eff02f
Issue Description:
Given the following code:
The index store does not relate the method implemented in the subclass to the protocol declaration, although it does so for the method implemented in the baseclass. From the perspective of detecting unused code, it's not possible to identify that
fileManager(_:shouldRemoveItemAtPath:)
is an implementation of the protocol method.Method in subclass:
Method in baseclass, note the extra `RelOver`:
The text was updated successfully, but these errors were encountered: