Skip to content

Incorrect handling of virtual methods #402

@tritao

Description

@tritao

Consider this case:

C++:
static Base getBase() { return Derived(); }

C#:
Base b = Base.getBase(); b.virtual();

Since we're not generating code to go through the virtual table in Base we'll not have the expected polymorphic behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions