Skip to content

Subclasses of TypeName return TypeName from copy #1967

Open
@Vampire

Description

@Vampire

If you for example call copy on a ClassName, you get TypeName returned.
The copy with tags parameter is overridden in the subclasses and returns the respective subclass.
But the copy without tags parameter always returns TypeName.

It would be nice if TypeName could get a type parameter that the subclass sets to itself and then both copy functions return the actual subclass.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions