Skip to content

[cxx-interop] Propagate CONFORMS_TO attribute to derived classes #70304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

egorzhdan
Copy link
Contributor

If struct Base is a public base class of struct Derived, and Base is annotated with __attribute__((swift_attr("conforms_to:MyModule.MyProto"))), Derived will now also get a conformance to MyProto.

rdar://113971944

If `struct Base` is a public base class of `struct Derived`, and `Base` is annotated with `__attribute__((swift_attr("conforms_to:MyModule.MyProto")))`, `Derived` will now also get a conformance to `MyProto`.

rdar://113971944
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Dec 7, 2023
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan enabled auto-merge December 7, 2023 19:36
@egorzhdan egorzhdan merged commit 6ecaaa4 into main Dec 7, 2023
@egorzhdan egorzhdan deleted the egorzhdan/conforms-to-derived-class branch December 7, 2023 21:00
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.

2 participants