Skip to content

Fix false positive for subscript(dynamicMember:) in external type extensions#1067

Open
rnapier wants to merge 1 commit intoperipheryapp:masterfrom
rnapier:fix-dynamic-member-lookup-external-extension
Open

Fix false positive for subscript(dynamicMember:) in external type extensions#1067
rnapier wants to merge 1 commit intoperipheryapp:masterfrom
rnapier:fix-dynamic-member-lookup-external-extension

Conversation

@rnapier
Copy link

@rnapier rnapier commented Feb 4, 2026

Periphery incorrectly reported subscript(dynamicMember:) as unused when declared in an extension of an external type with @dynamicMemberLookup (e.g., Foundation's AttributeDynamicLookup).

The fix retains all subscript(dynamicMember:) declarations unconditionally, since this signature is specific to Swift's @dynamicMemberLookup mechanism.

Fixes #1066

…ensions

Periphery incorrectly reported subscript(dynamicMember:) as unused when
declared in an extension of an external type with @dynamicMemberLookup
(e.g., Foundation's AttributeDynamicLookup).

The fix retains all subscript(dynamicMember:) declarations unconditionally,
since this signature is specific to Swift's @dynamicMemberLookup mechanism.

Fixes peripheryapp#1066
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.

False positive on AttributeDynamicLookup subscript

1 participant