Skip to content

Support final Mutable units objects in @AutoLog #252

@tbeadle

Description

@tbeadle

Is your feature request related to a problem? Please describe.
This is somewhat related to #222 in that I am trying to use Mutable Units objects in my inputs class, but I want to make them 'final' to avoid other places in our code from overwriting them since the mut_* methods should be used on them. Making them 'final' causes the build to fail, though, because of the 'clone' method that it creates since it tries to assign this. to copy..

Describe the solution you'd like
If possible, in the 'clone' method use copy.<attr>.mut_replace(this.<attr> if the attribute is one of the mutable unit types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions