Skip to content

Incorrect description of possible coercions for method receivers #1113

Closed
@afetisov

Description

@afetisov

In the list of coercions, it is claimed in the section of function arguments

For method calls, the receiver (self parameter) can only take advantage of unsized coercions.

But this isn't true, the deref coercions are also applied to the method receiver. The transitive and subtyping coercions are also applied, and there may be some other cases.

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