Skip to content

Implement cast-to-iface #1437

Closed
Closed
@marijnh

Description

@marijnh

myvalue as myiface should, if myvalue is of a type that has an impl of myiface in scope, copy the value into a boxed representation, along with the dict needed to treat it as myiface. Values of such a type can have methods called on them, which will be resolved through the dict.

This depends on #1436

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