Skip to content

Clarify the relationship between this::X and self::X #893

Open
@Wilfred

Description

@Wilfred

this::X is late-static-bound semantics for a const type in a class. Similar to static::some_value.

By contrast, self::X in a type and self::some_value are both resolved to the lexically bound class.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions