Skip to content

manual, still a reference with ~ operator #16439

@CedricLevasseur

Description

@CedricLevasseur

In the last lines of the chapter of traits, we can read this example :
let mycircle: Circle = ~mycircle as ~Circle;
let nonsense = mycircle.radius() * mycircle.area();

But i've understand that the ~ operator is obsolete.
Could you please correct it ? Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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