Skip to content

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

Open
@josetr

Description

@josetr

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)
    {
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions