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

C++ interop: generated header: invalid header generated when forward declaration is required between two classes #70336

Open
hyp opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. c++ interop Feature: Interoperability with C++

Comments

@hyp
Copy link
Contributor

hyp commented Dec 8, 2023

Description

THe generated header doesn't generate forward declarations between two Swift classes:

Reproduction

public class B
{
    public init() {}
}

public class A
{
    public init(_ b: B) {}
}

Expected behavior

The generated header should be valid.

Environment

Swift main

Additional information

No response

@hyp hyp added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. c++ interop Feature: Interoperability with C++ triage needed This issue needs more specific labels labels Dec 8, 2023
@hyp hyp self-assigned this Dec 8, 2023
@hborla hborla removed the triage needed This issue needs more specific labels label Apr 27, 2024
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. c++ interop Feature: Interoperability with C++
Projects
None yet
Development

No branches or pull requests

2 participants