[SR-14181] Index store does not relate constructor referenced via Self #56559
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
duplicate
Resolution: Duplicates another issue
expressions
Feature: expressions
indexing
Area → source tooling: AST indexing
Self in struct & enum
Feature → types: The 'Self' type in structures and enumerations
source tooling
Area: IDE support, SourceKit, and other source tooling
swift 5.4
unexpected behavior
Bug: Unexpected behavior or incorrect output
Environment
Swift 5.3 & 5.4 beta
Additional Detail from JIRA
md5: 14bd45e97ccd316281a8cb702253758c
Issue Description:
Given the following code:
The index store does not relate the constructor at all. For the purposes of identifying unused code, it's not possible to determine that the constructor is in use. It's debatable which definition should hold the constructor relation. Either the struct or the property would suffice, though the implicit property setter would be my preference.
The text was updated successfully, but these errors were encountered: