Skip to content

Conversation

@Xazax-hun
Copy link
Contributor

Make sure they are excluded from the reflection metadata (although in the future we want to make sure indirect fields are included). Make sure the users cannot refer to the anonymous field, only its members.

Make sure they are excluded from the reflection metadata (although in
the future we want to make sure indirect fields are included). Make sure
the users cannot refer to the anonymous field, only its members.
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@susmonteiro susmonteiro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This looks great, thank you!

@Xazax-hun Xazax-hun enabled auto-merge September 10, 2025 17:45
@Xazax-hun Xazax-hun merged commit 4fabc61 into swiftlang:main Sep 10, 2025
4 of 5 checks passed
Xazax-hun added a commit to Xazax-hun/swift that referenced this pull request Sep 11, 2025
…types

[cxx-interop] Restrict the uses of anonymous types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants