Skip to content

Loop in class building prevent compiler termination #55

@trethaller

Description

@trethaller

When a serializable class ends-up referencing itself in its graph of references, this error can occur:
Loop in class building prevent compiler termination

The current workaround is to declare the reference of an more abstract type, eg, Serializable, and add strongly typed get/set.

Should this be standardized? For example:

@:s(sub) var subRef : MyClass;

@:storeAs(ParentClass) @:s var subRef : MyClass;

@:selfRef @:s var subRef : MyClass;

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