-
Notifications
You must be signed in to change notification settings - Fork 518
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
Overriding of pure virtual method is incorrect in C# wrapper #1283
Comments
Thanks for reporting the bug. Maybe we should not generate properties for methods, when they are virtual. As a workaround, you can disable the pass that generates properties out of getters ( |
@ArtsevDmitry the correct behaviour should be to only get an overridden property with the body of the generated method which in turn should be gone. Unfortunately, I couldn't reproduce it here. The macros in your test case might be somehow involved. I would advise you to try generation with gradually removed macros to see if you can get to an even simpler test case. |
I ran into this bug as well and made a minimal reproduction: namespace foo {
class Dorld {
virtual int UnkFunc1() = 0;
};
}
class Bar : public foo::Dorld {
public:
virtual int UnkFunc1() override;
}; Results in this output: https://gist.github.com/angryzor/5f00133280bce5e0cd523eb0d2562428 Note that the namespace is important. If [EDIT] I tried debugging the issue myself but I've been unsuccessful at setting up a working dev environment, I'm sorry :( |
I had another look and concluded that the bug occurs in When When instead Looking to see if I can make a patch because this bug is really causing issues for me. Ok yeah this is really simple, just need to add |
I'm playing around OpenCascade simple wrapper. I use one header "Geom2d_Line.hxx", class Geom2d_Line inherited from Geom2d_Curve which contain next method:
in Geom2d_Line class this method overrides:
OS: Windows
when it converted to C#, I have property in Geom2dCurve
but in Geom2dLine I have these two members:
and this in same CS class:
There are two issues:
What should I do in this case, can I solve it with custom pass or something?
Thanks.
Used headers
Geom2d_Line.hxx
Used settings
Target: MSVC
The text was updated successfully, but these errors were encountered: