CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

Structs which are marked as CS_VALUE_TYPE and have base class generate incompilable code

Open josetr opened this issue 5 years ago • 0 comments

OS: Windows

Used settings

Target: MSVC

struct BaseStruct { };

Incompilable generated code
// DEBUG: struct CS_VALUE_TYPE Struct : public StructBase
// DEBUG: {
// DEBUG: }
public unsafe partial struct Struct
{
    private Struct(void* native, bool skipVTables = false) : this()
        : base((void*) native)
    {
    }
}

josetr avatar Oct 07 '20 04:10 josetr