Skip to content

manual, still a reference with ~ operator #16439

Closed
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions