Open ileitch opened 1 month ago
@bnbarham Maybe this is of interest to you?
Ah, thanks for the ping @ileitch. I'm fairly sure this is https://github.com/swiftlang/swift/issues/67446 - traitCollectionDidChange
is defined in @protocol UITraitEnvironment
. Though I'm somewhat surprised it worked in 5.10 since that issue was filed before 5.10 branched. Would you be able to confirm a recent main snapshot fixes things for you?
Description
Index stores produced by Swift 6 are missing related references for overridden external declarations.
This is a problematic change for Periphery and potentially other tools as it makes it harder to determine whether the overriding function overrides a function declared elsewhere in a project or one that is external.
Reproduction
Given the following snippet:
With Swift 6, the related reference for the overridden function is missing:
Expected behavior
Swift 5.10 produces a related reference for the overridden function contained by the overriding function:
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) Target: arm64-apple-macosx14.0
Additional information
No response