Fixed a bug when having a default arg in a ctor of a derived type
@ -2030,7 +2030,8 @@ namespace CppSharp.Generators.CSharp
}
NewLine();
if (method.Kind == CXXMethodKind.Constructor)
if (method.Kind == CXXMethodKind.Constructor &&
method.SynthKind != FunctionSynthKind.DefaultValueOverload)
GenerateClassConstructorBase(@class, method);
WriteStartBraceIndent();
@ -256,7 +256,7 @@ class QList
{
};
class DLL_API MethodsWithDefaultValues
class DLL_API MethodsWithDefaultValues : public Quux
public:
MethodsWithDefaultValues(Foo foo = Foo());