Skip to content

Cloning of objects where runtime type is not declared type #7

@sdfreyder

Description

@sdfreyder

When cloning objects whose runtime time differs from the declared type (as would be the case with a derived type using polymorphism) the resulting object is of the declared (less-derived) type instead of the runtime (derived) type.

The attached zip contains a short test program which demonstrates the issue.

clonetest.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions