Skip to content

Common base class is initialized multiple times. #6

@tjdhome

Description

@tjdhome

I have the following:

A trait, MCloneable, that defines a field and initializes it. The property is an array.
Two subtraits, each of which reference MCloneable and mutate the field in MCloneable.

A derived class, Foo that mixes in the two subtraits.

The property initializer(s) for MCloneable is called twice for instantiations of the Foo class-- once for each subtrait.

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