Skip to content

Conversation

@ileitch
Copy link
Contributor

@ileitch ileitch commented Dec 20, 2025

When a class implements an optional ObjC protocol method, the indexer was not creating a RelationOverrideOf relation to the protocol requirement. Use findWitnessedObjCRequirements to find and index these optional requirements.

Fixes #56327

When a class implements an optional ObjC protocol method, the indexer
was not creating a RelationOverrideOf relation to the protocol
requirement. Use findWitnessedObjCRequirements to find and index these
optional requirements.

Fixes swiftlang#56327
@ileitch
Copy link
Contributor Author

ileitch commented Jan 9, 2026

@hamishknight @rintaro @hborla @slavapestov @xedin Can I please get a review on this?

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hamishknight
Copy link
Contributor

@swift-ci please test

@hamishknight hamishknight enabled auto-merge January 9, 2026 22:15
@hamishknight hamishknight merged commit 0ca0c37 into swiftlang:main Jan 9, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SR-13930] Index store does not relate objc optional protocol method implemented in subclass

2 participants