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

Incorrect bindings for Box<dyn T> #99

Open
redeexpressos opened this issue Jan 13, 2025 · 0 comments
Open

Incorrect bindings for Box<dyn T> #99

redeexpressos opened this issue Jan 13, 2025 · 0 comments

Comments

@redeexpressos
Copy link

pub trait MyType {
//...
}

#[no_mangle]
pub extern "C" fn A(
    t: *mut Box<dyn MyType>,
) {
   //...
}

generates

        [DllImport(__DllName, EntryPoint = "A", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        internal static extern RadioConfig* A(** t);

which is wrong and invalid C# code.

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

No branches or pull requests

1 participant