Skip to content
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

Stored properties of C structs not found for protocol conformance #78584

Open
dabrahams opened this issue Jan 11, 2025 · 0 comments
Open

Stored properties of C structs not found for protocol conformance #78584

dabrahams opened this issue Jan 11, 2025 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@dabrahams
Copy link
Contributor

Description

A stored opaque pointer in an imported struct can't satisfy a protocol requirement.

Reproduction

TheCModule.h:

struct X {
  struct Y* opaque;
};
import TheCModule

protocol P {
  var opaque: OpaquePointer? { get set }
}
extension X: P {}

Expected behavior

Swift code compiles

Environment

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0

Additional information

No response

@dabrahams dabrahams added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant